diff --git a/scripts/change_url b/scripts/change_url index a6e5d19..fa5be8b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -94,7 +94,7 @@ settings="$final_path/venv/lib/python2.7/site-packages/weblate/settings.py" if [ "$old_path" == "/" ] && [ "$new_path" != "/" ] then # uwsgi_param is only needed for non-root installation - ynh_replace_string "#uwsgi_param " "wsgi_param " "$finalnginxconf" + ynh_replace_string "#uwsgi_param " "uwsgi_param " "$finalnginxconf" ynh_replace_string "#uwsgi_modifier1 " "uwsgi_modifier1 " "$finalnginxconf" if [ "$is_public" -eq 0 ] @@ -112,7 +112,7 @@ fi if [ "$old_path" != "/" ] && [ "$new_path" == "/" ] then # uwsgi_param is only needed for non-root installation - ynh_replace_string "uwsgi_param " "#wsgi_param " "$finalnginxconf" + ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf" ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf" # ynh panel is only comptable with non-root installation diff --git a/scripts/install b/scripts/install index 8f4f9a1..6b47f34 100755 --- a/scripts/install +++ b/scripts/install @@ -106,7 +106,7 @@ if [ "$path_url" == "/" ] then # $finalnginxconf comes from ynh_add_nginx_config # uwsgi_param is only needed for non-root installation - ynh_replace_string "uwsgi_param " "#wsgi_param " "$finalnginxconf" + ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf" ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf" ynh_replace_string "location //" "location /" "$finalnginxconf" diff --git a/scripts/upgrade b/scripts/upgrade index c34dd86..3eabd82 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -61,7 +61,7 @@ if [ "$path_url" == "/" ] then # $finalnginxconf comes from ynh_add_nginx_config # uwsgi_param is only needed for non-root installation - ynh_replace_string "uwsgi_param " "#wsgi_param " "$finalnginxconf" + ynh_replace_string "uwsgi_param " "#uwsgi_param " "$finalnginxconf" ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf" ynh_replace_string "location //" "location /" "$finalnginxconf"