diff --git a/scripts/change_url b/scripts/change_url index 1cc7ea7..9018ece 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -53,10 +53,10 @@ 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 ] + #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 @@ -68,7 +68,7 @@ then # Delete file checksum for the old conf file location ynh_delete_file_checksum --file="$nginx_conf_path" ynh_delete_file_checksum --file="$nginx_extra_conf_dir/php.conf" - ynh_delete_file_checksum --file="$nginx_extra_conf_dir/nginx-code-error.conf" + #ynh_delete_file_checksum --file="$nginx_extra_conf_dir/nginx-code-error.conf" path_url="$new_path" domain="$old_domain" @@ -81,7 +81,7 @@ then # Store file checksum for the new config file location ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.d/php.conf" - ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.d/nginx-code-error.conf" + #ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.d/nginx-code-error.conf" fi #=================================================