Properly use mariadb-admin instead of mysqladmin

This commit is contained in:
VirtuBox
2024-06-07 16:51:53 +02:00
parent 486ce838f7
commit c35e9e6fa3
7 changed files with 30 additions and 18 deletions

View File

@@ -1144,7 +1144,7 @@ def post_pref(self, apt_packages, packages, upgrade=False):
else:
wo_grant_host = 'localhost'
# check if mysql credentials are available
if (WOShellExec.cmd_exec(self, "mysqladmin ping")
if (WOMysql.mariadb_ping(self)
and wo_grant_host == 'localhost'):
try:
WOMysql.execute(