keep the docker compose check more concise

This commit is contained in:
Philip Henning 2024-11-26 18:49:21 +01:00
parent 3afb539baf
commit 99a81eff69

View file

@ -149,7 +149,7 @@ services:
environment: environment:
PRE_COMMANDS: |- PRE_COMMANDS: |-
cd /sso.base23.de/ cd /sso.base23.de/
if $(docker compose &>/dev/null) && [ $? -eq 0 ]; then echo "nothing to do"; else apk add --no-cache docker-cli-compose; fi [[ $($(docker compose &>/dev/null); echo "$?") -eq 0 ]] || apk add --no-cache docker-cli-compose
docker compose exec postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql docker compose exec postgresql pg_dump -U ${PG_USER:-authentik} -d ${PG_DB:-authentik} -f /var/lib/postgresql/backups/${PG_DB:-authentik}.sql
#RUN_ON_STARTUP: "true" #RUN_ON_STARTUP: "true"
BACKUP_CRON: "32 2 * * *" BACKUP_CRON: "32 2 * * *"