remove lockfile after zfsync.sh init

This commit is contained in:
n 2025-04-05 00:59:11 +02:00
parent ed1987e4cb
commit b4bb0ada96
Signed by: n
GPG key ID: 510227DD6C502CE3

View file

@ -51,6 +51,7 @@ then
echo "renaming them to use them as a base for diff snapshots"
for jail in $pools; do zfs rename "$ZROOT/$jail/home@newsync" "$ZROOT/$jail/home@prevsync" ;done
ssh -q "$bro" 'for jail in ftp mail web; do zfs rename zdata/servers/$jail/home@newsync zdata/servers/$jail/home@prevsync ;done'
rm -f $LOCKFILE
exit $?
fi
fi