From 7823c37c8a8b5bdacef8439cb65e8a8b1938c4ad Mon Sep 17 00:00:00 2001 From: Andreas Neue Date: Wed, 4 Jan 2023 15:28:29 +0100 Subject: [PATCH] playing with cron --- cron.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cron.mk b/cron.mk index bb1d600..2b77c88 100644 --- a/cron.mk +++ b/cron.mk @@ -1,11 +1,9 @@ MANDATORY-cron = -pre-deploy-cron: - -post-deploy-cron: start-cron: - + ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | { cat; echo "#ck-deploy-cron:$(DEPLOY_NAME)"; cat "$(DEPLOY_NAME)/crontab"; } | crontab -' + stop-cron: - + ssh $(SSH_USER)@$(host) 'crontab -l | sed "/^#make-deploy-cron:$(DEPLOY_NAME)/,+1 d" | crontab -'