1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

debug change url script

This commit is contained in:
Robles Rodolphe 2020-06-04 00:26:08 +02:00
parent b4a9350fd2
commit bdf6c2c617

View file

@ -120,12 +120,6 @@ ynh_script_progression --message="Upgrading nginx web server configuration..." -
ynh_add_nginx_config ynh_add_nginx_config
# Modify Nginx configuration file and copy it to Nginx conf directory
ynh_replace_string --match_string="YNH_WWW_PATH" --replace_string="$path_url/" --target_file="$final_path/nginx_conf"
ynh_replace_string --match_string='YNH_WWW_ALIAS' --replace_string='$final_path/' --target_file="$final_path/nginx_conf"
### `ynh_add_nginx_config` will use the file conf/nginx.conf
# Create a dedicated nginx config
if [ "$path_url" != "/" ] if [ "$path_url" != "/" ]
then then
ynh_replace_string "^#sub_path_only" "" "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_replace_string "^#sub_path_only" "" "/etc/nginx/conf.d/$domain.d/$app.conf"