mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Fix If
This commit is contained in:
parent
9f4b3eca57
commit
0fdfa5510c
2 changed files with 2 additions and 4 deletions
|
@ -163,8 +163,7 @@ ynh_app_setting_set $app final_path $final_path
|
||||||
ynh_print_info "Configuring nginx web server..."
|
ynh_print_info "Configuring nginx web server..."
|
||||||
|
|
||||||
### `ynh_add_nginx_config` will use the file conf/nginx.conf
|
### `ynh_add_nginx_config` will use the file conf/nginx.conf
|
||||||
if [ $path = "/" ]
|
if [ $path = "/" ]; then
|
||||||
then
|
|
||||||
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
|
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
|
||||||
else
|
else
|
||||||
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"
|
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"
|
||||||
|
|
|
@ -77,8 +77,7 @@ path_url=$(ynh_normalize_url_path $path_url)
|
||||||
ynh_print_info "Upgrading nginx web server configuration..."
|
ynh_print_info "Upgrading nginx web server configuration..."
|
||||||
|
|
||||||
# Create a dedicated nginx config
|
# Create a dedicated nginx config
|
||||||
if [ $path = "/" ]
|
if [ $path = "/" ]; then
|
||||||
then
|
|
||||||
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
|
ynh_replace_string "__SUB_PATH__" "" "..conf/nginx.conf"
|
||||||
else
|
else
|
||||||
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"
|
ynh_replace_string "__SUB_PATH__" "$path" "..conf/nginx.conf"
|
||||||
|
|
Loading…
Add table
Reference in a new issue