provide $(host) parameter for pre-/post-local.sh

This commit is contained in:
Andreas Neue 2022-11-15 17:19:28 +01:00
parent 3f2da20178
commit f3847dc668
1 changed files with 6 additions and 2 deletions

View File

@ -33,7 +33,9 @@ endif
pre-local:
ifneq (,$(wildcard pre-local.sh))
@- echo "\n### running pre-local script"
@- sh ./pre-local.sh
@- $(foreach host,$(DEPLOY_HOSTS), \
sh ./pre-local.sh $(host); \
)
else
@- echo "\n### no pre-local script found"
endif
@ -41,7 +43,9 @@ endif
post-local:
ifneq (,$(wildcard post-local.sh))
@- echo "\n### running post-local script"
@- sh ./post-local.sh
@- $(foreach host,$(DEPLOY_HOSTS), \
sh ./post-local.sh $(host); \
)
else
@- echo "\n### no post-local script found"
endif