From d6b256537a9efacb89b4fae5709dbb55f1934501 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Wed, 3 Feb 2021 22:39:23 -0500 Subject: automatic rebuilding of site if updates --- Bastillefile | 6 ++++-- var/cron/tabs/www | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 var/cron/tabs/www diff --git a/Bastillefile b/Bastillefile index 88c7721..13ec2bd 100644 --- a/Bastillefile +++ b/Bastillefile @@ -1,8 +1,10 @@ # Simple web server for my personal site pages PKG lighttpd OVERLAY usr -CMD fetch -mo /tmp http://192.168.1.50:3000/53hornet/53hor/archive/master.tar.gz -CMD tar -C /var -xzvf /tmp/master.tar.gz --exclude drafts --exclude Makefile --exclude templates +OVERLAY var +CMD fetch -o /tmp http://192.168.1.50:3000/53hornet/53hor/archive/master.tar.gz +CMD tar -C /var -xvf /tmp/master.tar.gz --exclude drafts --exclude Makefile --exclude templates +CMD mv /tmp/master.tar.gz /tmp/master.tar.gz.bak SYSRC lighttpd_enable=YES SERVICE lighttpd start diff --git a/var/cron/tabs/www b/var/cron/tabs/www new file mode 100644 index 0000000..e436e15 --- /dev/null +++ b/var/cron/tabs/www @@ -0,0 +1 @@ +0 */6 * * * fetch -o /tmp -i /tmp/master.tar.gz.bak http://192.168.1.50:3000/53hornet/53hor/archive/master.tar.gz && tar -C /var -xf /tmp/master.tar.gz --exclude drafts --exclude Makefile --exclude templates && mv /tmp/master.tar.gz /tmp/master.tar.gz.bak -- cgit v1.2.3