autoupdate target

This commit is contained in:
fosslinux 2019-03-14 19:39:36 +11:00
parent a7e4a51a3a
commit c7f9b24202
2 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,9 @@ burrow-install:
cron-pubnix-install:
cat ~/dotfiles/cron/pubnix-cron >> ~/dotfiles/my-cron
cron-auto-update-install:
cat ~/dotfiles/cron/auto-update-cron >> ~/dotfiles/my-cron
cron-install:
if [ -e ~/dotfiles/my-cron ] ; then crontab ~/dotfiles/my-cron ; fi

2
cron/auto-update-cron Normal file
View File

@ -0,0 +1,2 @@
0,30 * * * * cd ~/public_html && git pull >/dev/null 2>&1
0 * * * * cd ~/dotfiles && git pull | sed '/Already up to date/d'