1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

Fix upgrade

This commit is contained in:
anmol26s 2020-04-07 21:33:44 +05:30
parent 2c387e657c
commit b1001a8d7d

View file

@ -123,6 +123,13 @@ rm -Rf "$tmpdir"
#=================================================
ynh_script_progression --message="Upgrading nginx web server configuration..." --time --weight=1
# Create a dedicated nginx config
if [ "$path_url" != "/" ]; then
ynh_replace_string --match_string="__PATHTOCHANGE__" --replace_string="$path_url" --target_file="../conf/nginx.conf"
else
ynh_replace_string --match_string="__PATHTOCHANGE__" --replace_string=" " --target_file="../conf/nginx.conf"
fi
# Create a dedicated nginx config
ynh_add_nginx_config