mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-21 18:50:28 +00:00
refine case makeknownhosts_node_d
This commit is contained in:
@@ -33,11 +33,13 @@ description:delete known node entry from $ROOTHOME/.ssh
|
||||
cmd:makeknownhosts $$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
||||
check:output=~$$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
||||
check:rc==0
|
||||
cmd:makeknownhosts $$CN -d
|
||||
check:rc==0
|
||||
cmd:cat ~/.ssh/known_hosts|grep $$CN
|
||||
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
|
||||
check:rc!=0
|
||||
check:output!~$$CN
|
||||
check:output!~__GETNODEATTR($$CN,ip)__
|
||||
end
|
||||
|
||||
start:makeknownhosts_node_v
|
||||
|
Reference in New Issue
Block a user