Inital commit

This commit is contained in:
2022-04-15 22:42:28 +02:00
commit f58f6a2953
13 changed files with 348 additions and 0 deletions

9
Playground/testVMfile.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
#VMID=$1
VMID=101
FILE=/opt/test
if [ $(qm guest exec $VMID -- test -f $FILE |jq '.exitcode') == 0 ] ; then
echo "File exists in $VMID"
else
echo "File does not exist in $VMID."
fi