Fix: mariadb-dump || echo i.p.v. hard fail bij ontbrekende tabellen

This commit is contained in:
root
2026-06-05 23:17:03 +02:00
parent 3f9340f66d
commit d26e9330ed
+1 -1
View File
@@ -56,7 +56,7 @@ git pull
# --- Automatic Safe Database Backup ---
echo "--> Creating automatic database backup before update..."
mkdir -p "$BACKUP_DIR"
mariadb-dump $MYSQL_CRED --force --skip-lock-tables "$DB_NAME" > "$BACKUP_DIR/backup_$(date +%Y%m%d_%H%M%S).sql"
mariadb-dump $MYSQL_CRED --force --skip-lock-tables "$DB_NAME" > "$BACKUP_DIR/backup_$(date +%Y%m%d_%H%M%S).sql" || echo "--> Backup heeft ontbrekende tabellen (niet kritisch) — update gaat verder"
# --- Automatic SQL Import ---
echo "--> Checking for new SQL files..."