Bug fix for the restore script. It now deletes the temp backup directories automatically.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user