make-deploy/apt.mk

13 lines
290 B
Makefile
Raw Permalink Normal View History

2024-06-05 07:29:49 +00:00
MANDATORY-apt = DEPLOY_HOSTS SSH_USER APT_PACKAGES DEPLOY_NAME
2023-03-02 07:50:53 +00:00
2023-02-23 09:12:17 +00:00
pull-apt:
# nop
start-apt:
@- echo "\n### start"
@- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \
2023-05-19 07:28:14 +00:00
ssh $(SSH_USER)@$(host) "sudo apt install -y $(APT_PACKAGES); sh start.sh"; \
sleep $(DEPLOY_START_DELAY); \
2023-02-23 09:12:17 +00:00
)