False start
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
if [ -f /run/appdata_active_snapshot.txt ]; then
|
||||
SNAPSHOT_NAME=$(cat /run/appdata_active_snapshot.txt)
|
||||
|
||||
# Unmount and clean up scratch directory
|
||||
umount -R /mnt/appdata-scratch || true
|
||||
rmdir /mnt/appdata-scratch || true
|
||||
|
||||
# Destroy the recursive snapshot tree across all appdata datasets
|
||||
zfs destroy -r tank/appdata@"$SNAPSHOT_NAME"
|
||||
|
||||
rm -f /run/appdata_active_snapshot.txt
|
||||
fi
|
||||
Reference in New Issue
Block a user