|
@@ -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
|
|
if ! "$DIALOG" --yesno "Have you already set up a root password for MariaDB?" 10 60; then
|
|
|
# User said No (exit code 1)
|
|
# User said No (exit code 1)
|
|
|
clear
|
|
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
|
|
fi
|
|
|
|
|
|
|
|
$DIALOG --form "MariaDB configuration" 16 70 6 \
|
|
$DIALOG --form "MariaDB configuration" 16 70 6 \
|