OctoPrint-GitFiles icon indicating copy to clipboard operation
OctoPrint-GitFiles copied to clipboard

Feature Request / Idea: Pulling the GitFiles repository in a certain interval

Open dotWee opened this issue 4 years ago • 4 comments

It would be nice if the configured repository clone would automatically update itself. Possibly in a certain interval or attached to the OctoPrint update-check schedule.

As a workaround solution I'm simply using a single cron job to pull the repository every 15 minutes. If anyone is interested in using it (replace $GITFILES_DIR with your absolute gitfiles repository path):

*/15 * * * * /usr/bin/git -C $GITFILES_DIR pull origin master >/dev/null 2>&1

dotWee avatar Feb 11 '20 15:02 dotWee