diff --git a/mariadb.yml b/mariadb.yml index a4e53cd..13b1f4a 100644 --- a/mariadb.yml +++ b/mariadb.yml @@ -96,13 +96,14 @@ # restart if new cert ist available 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 - docker compose down - docker compose up -d + docker compose up -d --force-recreate fi backup: yes @@ -215,7 +216,7 @@ traefik: external: true - backup: yes + backup: yes notify: Restart mariadb - name: Get letsencrypt cert from traefik