autostart delete tmp files

This commit is contained in:
nativemad
2018-10-24 14:49:05 +02:00
parent daabc3d8a0
commit 102e47026d
2 changed files with 18 additions and 5 deletions
+7
View File
@@ -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"