Files
ProxmoxHelper/Playground/testCTfile.sh
2022-04-15 22:42:28 +02:00

10 lines
169 B
Bash

#!/bin/bash
CTID=100
#CTID=$1
FILE=/opt/test
if pct exec $CTID -- test -f $FILE ; then
echo "File exists in $CTID"
else
echo "File does not exist in $CTID."
fi