From 551f52097923c914da346233eb8b0b2f04e1fff0 Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Wed, 4 Jan 2023 15:47:32 +0100 Subject: [PATCH] playing with cron --- cron.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.mk b/cron.mk index 602cdb8..bb6d894 100644 --- a/cron.mk +++ b/cron.mk @@ -4,14 +4,14 @@ start-cron: @- echo "\n### starting..." @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ - ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | { cat; echo "#ck-deploy-cron:$(DEPLOY_NAME)"; cat $(DEPLOY_PATH)/$(DEPLOY_NAME)/crontab"; } | crontab -'; \ + ssh $(SSH_USER)@$(host) "crontab -l | sed '/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d' | { cat; echo '#ck-deploy-cron:$(DEPLOY_NAME)'; cat $(DEPLOY_PATH)/$(DEPLOY_NAME)/crontab'; } | crontab -"; \ ) stop-cron: @- echo "\n### stopping ..." @- $(foreach host,$(DEPLOY_HOSTS), \ echo "$(host)"; \ - ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | crontab -'; \ + ssh $(SSH_USER)@$(host) "crontab -l | sed '/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d' | crontab -"; \ ) pull-cron: