From bf34f4800e4da3bc1a6a3a84abe52e332c75cd4b Mon Sep 17 00:00:00 2001 From: Krakinou Date: Tue, 27 Nov 2018 22:28:16 +0100 Subject: [PATCH] correct wrong alias in nginx.conf --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e3c9452..f43037b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -59,6 +59,10 @@ if [[ $?==0 ]]; then #setting conf file not world-readable (dude, there is a plain-text password !) sudo chmod o-r $final_path/conf.php + #change nginx.conf as per https://forum.yunohost.org/t/need-help-on-nginx-conf-cannot-access-resources/6342 + ynh_replace_string "alias $finalpath/www/ ;" "alias $finalpath/ ;" /etc/yunohost/$domain.d/$app.conf + ynh_replace_string "index index.php;" "index www/ndex.php;" /etc/yunohost/$domain.d/$app.conf + fi #mysqlpwd setting was implemented in ynh2 - check if saved and if not implement