make-deploy/cron.mk

10 lines
324 B
Makefile

MANDATORY-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 -'