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