Fix: export env vars in sudo context

main
boban 2026-04-19 01:11:27 +02:00
parent 707517bc39
commit 431f1b80a9
1 changed files with 7 additions and 6 deletions

View File

@ -189,12 +189,13 @@ echo "→ Docker Stack wird gestartet..."
cd /home/$USER/aziros
# Variablen für Docker Compose exportieren:
sudo -u $USER bash -c "
set -a
source /home/$USER/aziros/src/.env
set +a
sudo -u $USER docker compose \
-f $COMPOSE up -d --build
cd /home/$USER/aziros
docker compose -f $COMPOSE up -d --build
"
echo "→ Warte bis DB bereit ist..."
sleep 20