diff --git a/scripts/upgrade b/scripts/upgrade index 8baf90d..fc9bf65 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -192,7 +192,10 @@ ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --lin #================================================= # We don't test that in CI if ! [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then - ynh_add_config --template="nginx.conf" --destination="/etc/nginx/conf.d/$sandboxdomain.d/$app.conf" + bck_domain=$domain + domain=$sandboxdomain + ynh_add_nginx_config + domain=$bck_domain fi # We authorize access to sandbox domain