aboutsummaryrefslogtreecommitdiff
path: root/beepzone-helper.sh
diff options
context:
space:
mode:
authorUMTS at Teleco <crt@teleco.ch>2026-01-11 20:25:49 +0100
committerUMTS at Teleco <crt@teleco.ch>2026-01-11 20:25:49 +0100
commita0a914ac5138cbb93660d366984b5bf52823de06 (patch)
tree10d3ca63f3be0c0dbbc40102ccd23a57fd822ff6 /beepzone-helper.sh
parentb85b6d83d6c90dc6f8b2ef761fa39f9a4b280493 (diff)
fix
Diffstat (limited to 'beepzone-helper.sh')
-rwxr-xr-xbeepzone-helper.sh10
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 \