UMTS at Teleco пре 3 недеља
родитељ
комит
a0a914ac51
1 измењених фајлова са 8 додато и 2 уклоњено
  1. 8 2
      beepzone-helper.sh

+ 8 - 2
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 \