summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Bastillefile6
-rw-r--r--var/cron/tabs/www1
2 files changed, 5 insertions, 2 deletions
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