From dcce09f19f55cc88bcc2575e0676aa4273543fa8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 24 Apr 2026 04:14:49 -0400 Subject: [PATCH] fix(nginx): skip post-create config when nginx is stopped When nginx is stopped (e.g. during traefik/caddy tests), the post-create trigger should not attempt to build and reload the nginx config as the service is not running. --- plugins/nginx-vhosts/post-create | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/nginx-vhosts/post-create b/plugins/nginx-vhosts/post-create index 161dd046e..04f15e915 100755 --- a/plugins/nginx-vhosts/post-create +++ b/plugins/nginx-vhosts/post-create @@ -15,6 +15,10 @@ trigger-nginx-vhosts-post-create() { return fi + if [[ "$(fn-plugin-property-get "nginx" "--global" "proxy-status")" == "stopped" ]]; then + return + fi + nginx_build_config "$APP" }