14 lines
555 B
Bash
Executable File
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'
|