autostart delete tmp files
This commit is contained in:
@@ -300,6 +300,13 @@ if [ $# -gt 0 ]; then
|
||||
elif [ $1 == "checkvm" ]; then
|
||||
if [ -z $2 ]; then echo "checkvm needs two arguments"; fi
|
||||
checkvm $2
|
||||
elif [ $1 == "delautostart" ]; then
|
||||
if [ $2 == "local" ]; then
|
||||
rm /home/nlvmi/start*-$3.tmp
|
||||
rm /home/nlvmi/start*-$3.tmp.sha512
|
||||
else
|
||||
su nlvmi -c "ssh $2 \"rm /home/nlvmi/start*-$3.tmp; rm /home/nlvmi/start*-$3.tmp.sha512\""
|
||||
fi
|
||||
elif [ $1 == "start" ]; then
|
||||
if [ -z $2 ]; then echo "start needs a vmname!"; exit 1; fi
|
||||
VMFOUND="no"
|
||||
|
||||
Reference in New Issue
Block a user