fix alias_traversal and change maintainer
This commit is contained in:
@@ -100,6 +100,9 @@ then
|
||||
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
||||
|
||||
ynh_store_file_checksum "$finalnginxconf"
|
||||
else
|
||||
# add rewrite for alias_traversal protection
|
||||
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
||||
@@ -47,6 +47,13 @@ if [ -z "$final_path" ]; then
|
||||
ynh_app_setting_set "$app" final_path "$final_path"
|
||||
fi
|
||||
|
||||
# If path_url doesn't exist, create it
|
||||
if [ -z "$path_url" ]; then
|
||||
path_url=$(ynh_app_setting_get "$app" path)
|
||||
ynh_app_setting_set "$app" path_url "$final_path"
|
||||
ynh_app_setting_delete "$app" path
|
||||
fi
|
||||
|
||||
# Detect old installation style
|
||||
if [ -e /opt/yunohost/ffsync ]; then
|
||||
service ffsync stop
|
||||
@@ -111,6 +118,9 @@ then
|
||||
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
||||
|
||||
ynh_store_file_checksum "$finalnginxconf"
|
||||
else
|
||||
# add rewrite for alias_traversal protection
|
||||
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user