From f9b9541e0936f7dd985f22c10b85aa26839748eb Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 10 Feb 2022 11:06:36 -0500 Subject: [PATCH] removed php restart that made webgui update fail --- scripts/update_services.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/update_services.sh b/scripts/update_services.sh index 0c13c18..ce30fe4 100755 --- a/scripts/update_services.sh +++ b/scripts/update_services.sh @@ -33,7 +33,12 @@ install_mariadb() { if [[ "${VERSION_CODENAME}" == "buster" ]];then USER=${USER} ${my_dir}/update_db_pwd_buster.sh elif [[ "${VERSION_CODENAME}" == "bullseye" ]];then - USER=${USER} ${my_dir}/update_db_pwd_bullseye.sh + mysql -e " + SET PASSWORD FOR 'birder'@'localhost' = PASSWORD('${DB_PWD}'); + FLUSH PRIVILEGES"; + sed -i "s/mysqli.default_host =.*/mysqli.default_host = localhost/g" /etc/php/7.4/fpm/php.ini + sed -i "s/mysqli.default_user =.*/mysqli.default_user = birder/g" /etc/php/7.4/fpm/php.ini + sed -i "s/mysqli.default_pw =.*/mysqli.default_pw = ${DB_PWD}/g" /etc/php/7.4/fpm/php.ini fi }