mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
Delay User Deletion by 11 seconds in xdcp_nonroot_user for RHEL 8.5
This commit is contained in:
@@ -22,7 +22,7 @@ cmd:su -c "xdcp $$CN /etc/sysctl.conf /tmp/sysctl.conf" - xyzzy
|
||||
check:rc==0
|
||||
cmd:xdsh $$CN "stat -c '%U' /tmp/sysctl.conf"
|
||||
check:output=~xyzzy
|
||||
cmd:xdsh $$CN "userdel xyzzy"
|
||||
cmd:xdsh $$CN "userdel xyzzy"; if [ $? == 1 ]; then sleep 11; xdsh $$CN "userdel xyzzy"; fi
|
||||
check:rc==0
|
||||
cmd:servicenode=`lsdef $$CN |grep servicenode |awk -F= '{print $2}'`; if [ -n "$servicenode" ]; then xdsh $servicenode "userdel xyzzy";userdel xyzzy;else userdel xyzzy;fi
|
||||
check:rc==0
|
||||
|
Reference in New Issue
Block a user