diff --git a/static/new_etc_mycnf.sh b/static/new_etc_mycnf.sh index a0176253..d7eb457a 100644 --- a/static/new_etc_mycnf.sh +++ b/static/new_etc_mycnf.sh @@ -2,7 +2,8 @@ # shellcheck disable=2034,2059 true # shellcheck source=lib.sh -. <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +MYCNFPW=1 . <(curl -sL https://raw.githubusercontent.com/nextcloud/vm/master/lib.sh) +unset MYCNFPW # Check for errors + debug code and abort if something isn't right # 1 = ON @@ -229,7 +230,7 @@ key_buffer = 16M WRITENEW # Restart MariaDB -mysqladmin shutdown --force & spinner_loading +mysqladmin -u root -p"$MARIADBMYCNFPASS" shutdown --force & spinner_loading wait check_command systemctl restart mariadb & spinner_loading