#!/bin/bash

# Konfiguration
USER="admin"
PASS="jarvis"
DB="hamradio"
SQLFILE="/var/www/html/hamradio.sql"
LOGFILE="/var/www/html/hamradio.log"

echo "Starte Import von $SQLFILE in Datenbank $DB..."
nohup mysql -u $USER -p$PASS $DB < $SQLFILE > $LOGFILE 2>&1 &

echo "Import läuft im Hintergrund. Log: $LOGFILE"
