diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-02-03 22:39:23 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-02-03 22:39:23 -0500 |
commit | d6b256537a9efacb89b4fae5709dbb55f1934501 (patch) | |
tree | bf0e5aed3987d4b1606c94b8eb3d455cdef7c101 | |
parent | 47156c66f6dbd85ee13aa9fa88db8f6c347ed0d4 (diff) | |
download | www-d6b256537a9efacb89b4fae5709dbb55f1934501.tar.xz www-d6b256537a9efacb89b4fae5709dbb55f1934501.zip |
automatic rebuilding of site if updates
-rw-r--r-- | Bastillefile | 6 | ||||
-rw-r--r-- | var/cron/tabs/www | 1 |
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 |