add password to restart command

This commit is contained in:
Daniel Hansson 2017-07-26 00:35:48 +02:00 committed by GitHub
parent 1e9c2611c9
commit 90358a108c

View File

@ -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