playing with cron

This commit is contained in:
Andreas Neue 2023-01-04 15:54:44 +01:00
parent 6e35754475
commit 6ab7c531e1
1 changed files with 2 additions and 2 deletions

View File

@ -4,14 +4,14 @@ start-cron:
@- echo "\n### starting..." @- echo "\n### starting..."
@- $(foreach host,$(DEPLOY_HOSTS), \ @- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \ echo "$(host)"; \
ssh $(SSH_USER)@$(host) "crontab -l | sed \"/^#ck-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 \"/^#ck-deploy-cron:$(DEPLOY_NAME)/,+1 d\" | { cat; echo \"#ck-deploy-cron:$(DEPLOY_NAME)\"; cat \"$(DEPLOY_PATH)/$(DEPLOY_NAME)/crontab\"; } | crontab -"; \
) )
stop-cron: stop-cron:
@- echo "\n### stopping ..." @- echo "\n### stopping ..."
@- $(foreach host,$(DEPLOY_HOSTS), \ @- $(foreach host,$(DEPLOY_HOSTS), \
echo "$(host)"; \ echo "$(host)"; \
ssh $(SSH_USER)@$(host) "crontab -l | sed \"/^#ck-deploy-cron:$(DEPLOY_NAME)/,+1 d\" | crontab -" ssh $(SSH_USER)@$(host) "crontab -l | sed \"/^#ck-deploy-cron:$(DEPLOY_NAME)/,+1 d\" | crontab -"; \
) )
pull-cron: pull-cron: