mirror of
https://github.com/YunoHost-Apps/onlyoffice_ynh.git
synced 2024-09-03 19:56:11 +02:00
Fix upgrade
This commit is contained in:
parent
64356e5e35
commit
5f10ae8e2d
1 changed files with 5 additions and 4 deletions
|
@ -74,15 +74,16 @@ path_url=$(ynh_normalize_url_path $path_url)
|
|||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
ynh_print_info "Upgrading nginx web server configuration..."
|
||||
ynh_print_info "Configuring nginx web server..."
|
||||
|
||||
# Create a dedicated nginx config
|
||||
if [ $path_url = "/" ]
|
||||
then
|
||||
### `ynh_add_nginx_config` will use the file conf/nginx.conf
|
||||
if [ $path_url = "/" ]; then
|
||||
ynh_replace_string "__SUB_PATH__" "" "../conf/nginx.conf"
|
||||
else
|
||||
ynh_replace_string "__SUB_PATH__" "$path_url" "../conf/nginx.conf"
|
||||
fi
|
||||
|
||||
# Create a dedicated nginx config
|
||||
ynh_add_nginx_config "nextclouddomain"
|
||||
|
||||
# Fix main domain X-Frame-Options
|
||||
|
|
Loading…
Add table
Reference in a new issue