diff options
Diffstat (limited to 'beepzone-helper.sh')
| -rwxr-xr-x | beepzone-helper.sh | 10 |
1 files 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 \ |
