This repository has been archived on 2026-04-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
routeros_backup_next/start_prod.sh
Mateusz Gruszczyński ff7dbcb4e4 first commit
2026-04-12 21:26:12 +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