playing with cron
This commit is contained in:
parent
5121816d0d
commit
b46e62851e
2
cron.mk
2
cron.mk
|
@ -4,7 +4,7 @@ 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_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:
|
||||
|
|
Loading…
Reference in New Issue