1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

WIP: Update the custom config file

This commit is contained in:
Aurelien Vaillant 2023-08-21 15:20:52 +02:00
parent b6a23c7bc5
commit 44f371dae6

View file

@ -44,6 +44,7 @@ nginx_extra_conf_dir=/etc/nginx/conf.d/$old_domain.d/$app.d
# Change the path in the NGINX config file
if [ $change_path -eq 1 ]
ynh_print_info --message="Change the path in the Nginx config file"
then
# Make a backup of the original NGINX config file if modified
ynh_backup_if_checksum_is_different --file="$nginx_conf_path"
@ -53,10 +54,11 @@ then
path_url="$new_path"
# Update custom error file path if needed
#if [ $custom_error_file -eq 1 ]
#then
# ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
#fi
if [ $custom_error_file -eq 1 ]
ynh_print_info --message="Change the custom error config file"
then
ynh_add_config --template="nginx-code-error.conf" --destination="$nginx_extra_conf_dir/error-code.conf"
fi
# Create a dedicated NGINX configssh
ynh_add_nginx_config