script fixes

This commit is contained in:
Christopher Laprise 2018-03-29 07:31:40 -04:00
parent 244cb77b78
commit 1c7b944b3c
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -55,6 +55,7 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
# Check hashes
checkcode=0
echo >/tmp/vm-protect-sum-error
echo "File hash checks:" >/tmp/vm-protect-sum-error
for vmset in vms.all $vmname; do
if [ -f $defdir/$vmset.SHA ]; then
@ -121,11 +122,11 @@ if qsvc vm-boot-protect-root && is_rwonly_persistent; then
cp -af "$defdir/$vmset/rw/*" $rw
fi
# Keep configs invisible at runtime...
rm -rf $defdir/*
done
# Keep configs invisible at runtime...
rm -rf $defdir/*
fi
make_immutable