From 443b328c785734c4ab7736a853b31fcf0c766f6f Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 17 Oct 2020 13:13:50 +0200 Subject: rsync/git push configuration for non-interactive user --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 72b1396..3ff083c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ all: FORCE pull: - @rsync ${LIGA_RSYNC_OPTS} -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http + @rsync -e "ssh ${LIGA_SSH_OPTS}" -q --delete --exclude=.htaccess --exclude=.git --exclude=.gitignore -urPz ${LIGA_REMOTE_WWW_DIR}/ http autocommit: pull - @cd http && git diff --quiet || (git add . && git commit -m 'Autocommit' && git push) + @cd http && git diff --quiet || (date && git add . && git commit -m 'Autocommit' && GIT_SSH_COMMAND="ssh ${LIGA_SSH_OPTS}" git push) dumps: FORCE s3cmd -c dumps/.s3config sync ${LIGA_S3_BUCKET} dumps/sync/ -- cgit v1.2.3