mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
22 lines
1.0 KiB
Bash
22 lines
1.0 KiB
Bash
#!/bin/sh
|
|
# first-run-check.sh - Checks and initializes configuration files on first run
|
|
|
|
# Check for app.conf and deploy if required
|
|
if [ ! -f /app/config/app.conf ]; then
|
|
mkdir -p /app/config
|
|
cp /app/back/app.conf /app/config/app.conf
|
|
CYAN='\033[1;36m'
|
|
RESET='\033[0m'
|
|
>&2 printf "%s" "${CYAN}"
|
|
>&2 cat <<'EOF'
|
|
══════════════════════════════════════════════════════════════════════════════
|
|
🆕 First run detected. Default configuration written to /app/config/app.conf.
|
|
|
|
Review your settings in the UI or edit the file directly before trusting
|
|
this instance in production.
|
|
══════════════════════════════════════════════════════════════════════════════
|
|
EOF
|
|
>&2 printf "%s" "${RESET}"
|
|
fi
|
|
|