Files
dilib_operations/scripts/finalize-install.sh
T
ms 2c1c48df0c
PostgreSQL integration / tests (push) Has been cancelled
init
2026-11-09 13:15:48 +01:00

14 lines
555 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd /opt/dilib-dashboard
[[ $EUID -eq 0 ]] || { echo 'Als root ausführen'; exit 1; }
# DATABASE_URL, Redis und Domain müssen vorher gesetzt sein.
bash scripts/manage-env.sh check
bash scripts/manage-env.sh migrate --noinput
bash scripts/manage-env.sh collectstatic --noinput
bash scripts/manage-env.sh doctor
systemctl enable --now dilib-api dilib-ui dilib-worker dilib-beat
sleep 3
bash scripts/manage-env.sh doctor --workers
echo 'Dienste gestartet. Admin anlegen: sudo bash scripts/manage-env.sh createsuperuser'