mirror of
https://github.com/YunoHost-Apps/uptime-kuma_ynh.git
synced 2024-10-01 13:34:58 +02:00
don't allow nginx path change
This commit is contained in:
parent
86368b340c
commit
81710c4675
1 changed files with 11 additions and 11 deletions
|
@ -83,17 +83,17 @@ ynh_script_progression --message="Updating NGINX web server configuration..." --
|
|||
|
||||
nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
|
||||
|
||||
# Change the path in the NGINX config file
|
||||
if [ $change_path -eq 1 ]
|
||||
then
|
||||
# Make a backup of the original NGINX config file if modified
|
||||
ynh_backup_if_checksum_is_different --file="$nginx_conf_path"
|
||||
# Set global variables for NGINX helper
|
||||
domain="$old_domain"
|
||||
path_url="$new_path"
|
||||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
fi
|
||||
# # Change the path in the NGINX config file
|
||||
# if [ $change_path -eq 1 ]
|
||||
# then
|
||||
# # Make a backup of the original NGINX config file if modified
|
||||
# ynh_backup_if_checksum_is_different --file="$nginx_conf_path"
|
||||
# # Set global variables for NGINX helper
|
||||
# domain="$old_domain"
|
||||
# path_url="$new_path"
|
||||
# # Create a dedicated NGINX config
|
||||
# ynh_add_nginx_config
|
||||
# fi
|
||||
|
||||
# Change the domain for NGINX
|
||||
if [ $change_domain -eq 1 ]
|
||||
|
|
Loading…
Reference in a new issue