From a0a914ac5138cbb93660d366984b5bf52823de06 Mon Sep 17 00:00:00 2001 From: UMTS at Teleco Date: Sun, 11 Jan 2026 20:25:49 +0100 Subject: fix --- beepzone-helper.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/beepzone-helper.sh b/beepzone-helper.sh index da4b8a6..40c1102 100755 --- a/beepzone-helper.sh +++ b/beepzone-helper.sh @@ -301,8 +301,14 @@ configure_and_run_native_db() { if ! "$DIALOG" --yesno "Have you already set up a root password for MariaDB?" 10 60; then # User said No (exit code 1) clear - echo "Running mysql_secure_installation..." - sudo mysql_secure_installation + echo "Running database secure installation..." + if command -v mariadb-secure-installation >/dev/null 2>&1; then + sudo mariadb-secure-installation || true + elif command -v mysql_secure_installation >/dev/null 2>&1; then + sudo mysql_secure_installation || true + else + "$DIALOG" --msgbox "Neither 'mariadb-secure-installation' nor 'mysql_secure_installation' was found in PATH.\n\nPlease install MariaDB/MySQL server packages and rerun this step." 12 70 + fi fi $DIALOG --form "MariaDB configuration" 16 70 6 \ -- cgit v1.2.3-70-g09d2