2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 10:40:24 +00:00

Delay User Deletion by 11 seconds in xdcp_nonroot_user for RHEL 8.5

This commit is contained in:
Wai Yee Wong
2022-01-24 15:13:44 -05:00
parent 30d107b9cc
commit af2f3c8cdb

View File

@@ -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