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:
|
pre-local:
|
||||||
ifneq (,$(wildcard pre-local.sh))
|
ifneq (,$(wildcard pre-local.sh))
|
||||||
@- echo "\n### running pre-local script"
|
@- echo "\n### running pre-local script"
|
||||||
@- sh ./pre-local.sh
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
|
sh ./pre-local.sh $(host); \
|
||||||
|
)
|
||||||
else
|
else
|
||||||
@- echo "\n### no pre-local script found"
|
@- echo "\n### no pre-local script found"
|
||||||
endif
|
endif
|
||||||
|
@ -41,7 +43,9 @@ endif
|
||||||
post-local:
|
post-local:
|
||||||
ifneq (,$(wildcard post-local.sh))
|
ifneq (,$(wildcard post-local.sh))
|
||||||
@- echo "\n### running post-local script"
|
@- echo "\n### running post-local script"
|
||||||
@- sh ./post-local.sh
|
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||||
|
sh ./post-local.sh $(host); \
|
||||||
|
)
|
||||||
else
|
else
|
||||||
@- echo "\n### no post-local script found"
|
@- echo "\n### no post-local script found"
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue