mariadb.yml aktualisiert
This commit is contained in:
parent
364727751e
commit
ec43211eb8
16
mariadb.yml
16
mariadb.yml
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user