Inital commit
This commit is contained in:
9
Playground/testVMfile.sh
Normal file
9
Playground/testVMfile.sh
Normal 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
|
||||
Reference in New Issue
Block a user