1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
This commit is contained in:
ewilly 2018-05-26 14:44:52 +02:00
parent ba769be23a
commit 8b796dd181
2 changed files with 5 additions and 7 deletions

View file

@ -61,13 +61,8 @@ ln -s "$data_path/thumbs" "$final_path/thumbs"
myynh_set_permissions
# configure nginx settings
if test -n "${path_url:-}"; then
if [ "${path_url:-}" != "/" ]; then
ynh_replace_string "^#sub_path_only " "" "../conf/nginx.conf"
ynh_replace_string "__PATH__" "$path_url" "../conf/nginx.conf"
else
ynh_replace_string "location\( \(=\|~\|~\*\|\^~\)\)\? __PATH__/" "location\1 $path_url" "../conf/nginx.conf"
fi
if [ "$path_url" != "/" ]; then
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
fi
ynh_add_nginx_config

View file

@ -47,6 +47,9 @@ rm -R "$TMPDIR"
myynh_set_permissions
# configure nginx settings
if [ "$path_url" != "/" ]; then
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
fi
ynh_add_nginx_config
# copy and set php-fpm configuration