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" ]
|
||||
then
|
||||
# start mariadb if not initialized and down
|
||||
[ -s "db-data/mysql_upgrade_info" ] || docker compose up -d mariadb.{{inventory_hostname}}
|
||||
# wait if mariadb is not finished while initializing
|
||||
until [ -s "db-data/mysql_upgrade_info" ]
|
||||
do
|
||||
sleep 5
|
||||
done
|
||||
sleep 10
|
||||
docker compose up -d --force-recreate
|
||||
notinitilized=""
|
||||
[ -s "db-data/mysql_upgrade_info" ] || notinitilized=1
|
||||
if [ -n "$notinitilized" ]
|
||||
then
|
||||
docker compose up -d mariadb.{{inventory_hostname}}
|
||||
else
|
||||
docker compose up -d --force-recreate mariadb.{{inventory_hostname}}
|
||||
fi
|
||||
fi
|
||||
|
||||
backup: yes
|
||||
|
Loading…
Reference in New Issue
Block a user