mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Fix
This commit is contained in:
parent
ba769be23a
commit
8b796dd181
2 changed files with 5 additions and 7 deletions
|
@ -61,13 +61,8 @@ ln -s "$data_path/thumbs" "$final_path/thumbs"
|
||||||
myynh_set_permissions
|
myynh_set_permissions
|
||||||
|
|
||||||
# configure nginx settings
|
# configure nginx settings
|
||||||
if test -n "${path_url:-}"; then
|
if [ "$path_url" != "/" ]; then
|
||||||
if [ "${path_url:-}" != "/" ]; then
|
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
||||||
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
|
|
||||||
fi
|
fi
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,9 @@ rm -R "$TMPDIR"
|
||||||
myynh_set_permissions
|
myynh_set_permissions
|
||||||
|
|
||||||
# configure nginx settings
|
# configure nginx settings
|
||||||
|
if [ "$path_url" != "/" ]; then
|
||||||
|
ynh_replace_string "^#sub_path_only" "" "../conf/nginx.conf"
|
||||||
|
fi
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
# copy and set php-fpm configuration
|
# copy and set php-fpm configuration
|
||||||
|
|
Loading…
Add table
Reference in a new issue