From c7f9b2420282b2beaf6622c83f54e3753746d233 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Thu, 14 Mar 2019 19:39:36 +1100 Subject: [PATCH] autoupdate target --- Makefile | 3 +++ cron/auto-update-cron | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 cron/auto-update-cron diff --git a/Makefile b/Makefile index f6d4cd8..c7062d7 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/cron/auto-update-cron b/cron/auto-update-cron new file mode 100644 index 0000000..bd02d09 --- /dev/null +++ b/cron/auto-update-cron @@ -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'