mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
add password to restart command
This commit is contained in:
parent
1e9c2611c9
commit
90358a108c
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user