From 3bd4805df1ab19e89ddd20e3cbca0dbae77a6612 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Mon, 16 Oct 2023 17:52:08 +0200 Subject: [PATCH] cleanup stage --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e5e2871..751fbf6 100644 --- a/Makefile +++ b/Makefile @@ -34,12 +34,15 @@ prerequisites: @- echo "\n### prerequisites ..." @- ./prerequisites.sh +ifdef DEPLOY_CLEANUP cleanup: @- echo "\n### cleanup ..." @- $(foreach host,$(DEPLOY_HOSTS), \ + scp cleanup.sh $(SSH_USER)@$(host):/$(DEPLOY_PATH)/$(DEPLOY_NAME); \ ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME); sh cleanup.sh $(host)"; \ ) - +endif + prepare: @- echo "\n### preparing ..." @- chmod 600 secrets.mk