Fix restore script

This commit is contained in:
2026-01-26 19:06:44 +00:00
parent c3fc877787
commit 00263cf608

View File

@@ -209,7 +209,7 @@ cmd_restore() {
;; ;;
*) *)
POS_ARGS="$POS_ARGS \"$1\"" POS_ARGS="$POS_ARGS $1"
;; ;;
esac esac
shift shift
@@ -257,7 +257,7 @@ cmd_restore() {
echo "Restoring from backup: $BACKUP_DIR" echo "Restoring from backup: $BACKUP_DIR"
# Ensure stack is not running # Ensure stack is not running
docker compose down docker compose down > /dev/null 2>&1
# Create snapshot to revert to on failure # Create snapshot to revert to on failure
trap restore_cleanup_trap HUP INT QUIT ABRT TERM trap restore_cleanup_trap HUP INT QUIT ABRT TERM