Files
mikrotik_backup_system/start_prod.sh
Mateusz Gruszczyński 3da6c2832c first commit
2026-04-14 11:39:46 +02:00

16 lines
359 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${ROOT_DIR}"
if [[ ! -f .env ]] && [[ -f .env.example ]]; then
cp .env.example .env
fi
if grep -q '^DEFAULT_ADMIN_PASSWORD=admin$' .env 2>/dev/null; then
echo "Warning: DEFAULT_ADMIN_PASSWORD is still set to admin in .env"
fi
docker compose up --build