From 048fcb5b5832897c644e8afc739f96c3926cad66 Mon Sep 17 00:00:00 2001 From: kemboi22 Date: Tue, 23 Jul 2024 03:06:22 +0300 Subject: [PATCH] few changes in db --- imageroot/systemd/user/db.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imageroot/systemd/user/db.service b/imageroot/systemd/user/db.service index 8a85f28..346ec32 100644 --- a/imageroot/systemd/user/db.service +++ b/imageroot/systemd/user/db.service @@ -27,8 +27,8 @@ ExecStart=/usr/bin/podman run --conmon-pidfile %t/mariadb-app.pid \ --env MARIADB_AUTO_UPGRADE=1 \ ${MARIADB_IMAGE} \ --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --skip-character-set-client-handshake -#ExecStartPost=/usr/bin/podman exec mariadb-app /bin/bash -c 'printf "[client] \npassword=Nethesis1234" > /root/.my.cnf' -#ExecStartPost=/usr/bin/podman exec mariadb-app /bin/bash -c "while ! mysqladmin ping -h localhost -P 3306 -u root; do sleep 1; done" +ExecStartPost=/usr/bin/podman exec mariadb-app /bin/bash -c 'printf "[client] \npassword=Nethesis1234" > /root/.my.cnf' +ExecStartPost=/usr/bin/podman exec mariadb-app /bin/bash -c "while ! mysqladmin ping -h localhost -P 3306 -u root; do sleep 1; done" ExecStop=/usr/bin/podman stop --ignore --cidfile %t/mariadb-app.ctr-id -t 10 ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/mariadb-app.ctr-id ExecReload=/usr/bin/podman kill -s HUP mariadb-app