Skip to content

Commit

Permalink
I might have to remake the repo lol..
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavybullets8 committed Oct 30, 2024
1 parent c4dcd8e commit c39dbb8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ cleanup_snapshots() {
if [ "$clone" != "-" ]; then
echo "Processing snapshot: $snapshot with clone: $clone"

echo "Promoting clone: $clone"
if ! zfs promote "$clone"; then
echo "Error: Failed to promote clone: $clone"
echo "Destroying clone: $clone"
if ! zfs destroy "$clone"; then
echo "Error: Failed to destroy clone dataset: $clone"
continue
fi

Expand All @@ -73,11 +73,6 @@ cleanup_snapshots() {
continue
fi

echo "Destroying clone dataset: $clone"
if ! zfs destroy "$clone"; then
echo "Error: Failed to destroy clone dataset: $clone"
continue
fi
else
echo "Destroying snapshot: $snapshot (no clones)"
if ! zfs destroy "$snapshot"; then
Expand Down

0 comments on commit c39dbb8

Please sign in to comment.