From 903111cab29c4193ae78c94c678aeacc756d8705 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Tue, 15 Nov 2022 13:58:13 +0100 Subject: [PATCH] add as parameter to (pre|post)-deploy.sh --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9d9cabb..79e7638 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ pre-deploy: ifdef DEPLOY_HOSTS @- echo "\n### running pre-deploy script(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ - ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh; sh pre-deploy_$(host).sh"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh pre-deploy.sh $(host); sh pre-deploy_$(host).sh"; \ ) endif @@ -26,7 +26,7 @@ post-deploy: ifdef DEPLOY_HOSTS @- echo "\n### running post-deploy script(s)" @- $(foreach host,$(DEPLOY_HOSTS), \ - ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh; sh post-deploy_$(host).sh"; \ + ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh post-deploy.sh $(host); sh post-deploy_$(host).sh"; \ ) endif