mariadb.yml aktualisiert

This commit is contained in:
olli 2024-05-28 14:10:06 +02:00
parent 364727751e
commit ec43211eb8

View File

@ -97,14 +97,14 @@
if [ -n "$new" ] if [ -n "$new" ]
then then
# start mariadb if not initialized and down # start mariadb if not initialized and down
[ -s "db-data/mysql_upgrade_info" ] || docker compose up -d mariadb.{{inventory_hostname}} notinitilized=""
# wait if mariadb is not finished while initializing [ -s "db-data/mysql_upgrade_info" ] || notinitilized=1
until [ -s "db-data/mysql_upgrade_info" ] if [ -n "$notinitilized" ]
do then
sleep 5 docker compose up -d mariadb.{{inventory_hostname}}
done else
sleep 10 docker compose up -d --force-recreate mariadb.{{inventory_hostname}}
docker compose up -d --force-recreate fi
fi fi
backup: yes backup: yes