mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-15 17:16:10 +00:00
13 lines
630 B
Plaintext
13 lines
630 B
Plaintext
start:xdsh_permission_denied
|
|
description: Test the exit code when command xdsh failed
|
|
label:cn_os_ready,parallel_cmds
|
|
cmd:xdsh $$CN date
|
|
check:rc==0
|
|
cmd:servicenode=`lsdef $$CN |grep servicenode |awk -F= '{print $2}'`; if [ -n "$servicenode" ]; then xdsh $$SN mv /root/.ssh/id_rsa /root/.ssh/id_rsa.backup;else mv /root/.ssh/id_rsa /root/.ssh/id_rsa.backup;fi
|
|
check:rc==0
|
|
cmd:xdsh $$CN date
|
|
check:rc!=0
|
|
cmd:servicenode=`lsdef $$CN |grep servicenode |awk -F= '{print $2}'`; if [ -n "$servicenode" ]; then xdsh $$SN mv /root/.ssh/id_rsa.backup /root/.ssh/id_rsa;else mv /root/.ssh/id_rsa.backup /root/.ssh/id_rsa;fi
|
|
check:rc==0
|
|
end
|