|
|
@ -47,6 +47,13 @@ if [ -z "$final_path" ]; then
|
|
|
|
ynh_app_setting_set "$app" final_path "$final_path"
|
|
|
|
ynh_app_setting_set "$app" final_path "$final_path"
|
|
|
|
fi
|
|
|
|
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
|
|
|
|
# Detect old installation style
|
|
|
|
if [ -e /opt/yunohost/ffsync ]; then
|
|
|
|
if [ -e /opt/yunohost/ffsync ]; then
|
|
|
|
service ffsync stop
|
|
|
|
service ffsync stop
|
|
|
@ -111,6 +118,9 @@ then
|
|
|
|
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
|
|
|
ynh_replace_string "uwsgi_modifier1 " "#uwsgi_modifier1 " "$finalnginxconf"
|
|
|
|
|
|
|
|
|
|
|
|
ynh_store_file_checksum "$finalnginxconf"
|
|
|
|
ynh_store_file_checksum "$finalnginxconf"
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
# add rewrite for alias_traversal protection
|
|
|
|
|
|
|
|
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|