Bug fix for the restore script. It now deletes the temp backup directories automatically.

This commit is contained in:
Scott Idem
2026-01-13 12:47:08 -05:00
parent ea45d99f13
commit 6297df094d
7 changed files with 90 additions and 7 deletions

View File

@@ -77,4 +77,10 @@ docker stop ae_mariadb_maint && docker rm ae_mariadb_maint
echo ">>> Starting MariaDB container normally..."
docker compose start mariadb
echo "--- Restore and Password Reset Complete! ---"
echo "--- Restore and Password Reset Complete! ---"
# 8. Cleanup Safety Snapshot (Only on success)
if [ -n "$BACKUP_DIR" ] && [ -d "$BACKUP_DIR" ]; then
echo ">>> Removing safety snapshot (Restore successful)..."
rm -rf "$BACKUP_DIR"
fi