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 cd /home/$USER/aziros
# Variablen für Docker Compose exportieren: # Variablen für Docker Compose exportieren:
set -a sudo -u $USER bash -c "
source /home/$USER/aziros/src/.env set -a
set +a source /home/$USER/aziros/src/.env
set +a
sudo -u $USER docker compose \ cd /home/$USER/aziros
-f $COMPOSE up -d --build docker compose -f $COMPOSE up -d --build
"
echo "→ Warte bis DB bereit ist..." echo "→ Warte bis DB bereit ist..."
sleep 20 sleep 20