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

14 lines
692 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
[[ $EUID -eq 0 && "$PWD" == /opt/dilib-dashboard ]] || { echo 'Als root in /opt/dilib-dashboard ausführen.'; exit 1; }
[[ -x .venv-agent/bin/python ]] || { echo 'Zuerst scripts/install-agent.sh ausführen.'; exit 1; }
.venv-agent/bin/pip install 'flower==2.2.0'
if [[ ! -e /etc/dilib-agent/flower.env ]]; then
install -m 640 -o root -g dilib-agent deploy/flower.env.example /etc/dilib-agent/flower.env
fi
install -m 644 deploy/systemd/dilib-flower.service /etc/systemd/system/
systemctl daemon-reload
echo 'Broker und FLOWER_BASIC_AUTH in /etc/dilib-agent/flower.env setzen.'
echo 'Dann: systemctl enable --now dilib-flower'