Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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'
|
||||
Reference in New Issue
Block a user