mirror of
https://git.chefkoch.net/pub/make-deploy
synced 2025-05-12 18:44:56 +00:00
cron.mk: use sudo -u for crontab -e
This commit is contained in:
parent
4a05d9f562
commit
e217695036
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
@ -93,7 +93,7 @@ ifdef DEPLOY_HOSTS
|
|||
@- $(foreach host,$(DEPLOY_HOSTS), \
|
||||
ssh $(SSH_USER)@$(host) "mkdir -p $(DEPLOY_PATH)/$(DEPLOY_NAME)"; \
|
||||
rsync -rav --exclude '*~' --exclude '.git*' --exclude '*.swp' . $(SSH_USER)@$(host):$(DEPLOY_PATH)/$(DEPLOY_NAME); \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME) && chmod o-r .env secrets*" \
|
||||
ssh $(SSH_USER)@$(host) "cd $(DEPLOY_PATH)/$(DEPLOY_NAME) && chmod o-r .env secrets*"; \
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue