diff --git a/cron.mk b/cron.mk index bb6d894..9782a72 100644 --- a/cron.mk +++ b/cron.mk @@ -4,15 +4,15 @@ 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 \"/^#ck-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 \"/^#ck-deploy-cron:$(DEPLOY_NAME)/,+1 d\" | crontab -" + ) pull-cron: #nop