provide $(host) parameter for pre-/post-local.sh
This commit is contained in:
parent
3f2da20178
commit
f3847dc668
8
Makefile
8
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue