1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/onlyoffice_ynh.git synced 2024-09-03 19:56:11 +02:00

Fix path_url

This commit is contained in:
yalh76 2019-02-27 03:37:41 +01:00
parent 0fdfa5510c
commit b19ae35fc2
2 changed files with 3 additions and 2 deletions

View file

@ -163,7 +163,7 @@ ynh_app_setting_set $app final_path $final_path
ynh_print_info "Configuring nginx web server..."
### `ynh_add_nginx_config` will use the file conf/nginx.conf
if [ $path = "/" ]; then
if [ $path_url = "/" ]; then
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
else
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"

View file

@ -77,7 +77,8 @@ path_url=$(ynh_normalize_url_path $path_url)
ynh_print_info "Upgrading nginx web server configuration..."
# Create a dedicated nginx config
if [ $path = "/" ]; then
if [ $path_url = "/" ]
then
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
else
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"