From 90358a108cfa4e304c3ca53833333d6475aa3738 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Wed, 26 Jul 2017 00:35:48 +0200 Subject: [PATCH] add password to restart command --- static/new_etc_mycnf.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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