summaryrefslogtreecommitdiff
path: root/Bastillefile
diff options
context:
space:
mode:
Diffstat (limited to 'Bastillefile')
-rw-r--r--Bastillefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/Bastillefile b/Bastillefile
index 7c44cf0..ddc5e5b 100644
--- a/Bastillefile
+++ b/Bastillefile
@@ -1,16 +1,14 @@
# Prerequisites
-FSTAB /zroot/carpentertutoring /var/carpentertutoring nullfs ro 0 0
PKG lighttpd php74 php74-filter php74-openssl
OVERLAY usr
+CMD mkdir -p /var/www/PHPMailer /var/carpentertutoring
+FSTAB /zroot/carpentertutoring /var/carpentertutoring nullfs ro 0 0
# Install site to web root
-CMD mkdir -p /var/www && echo Created /var/www
-CMD fetch -o /tmp/master.tar.gz http://git.53hor.net/53hornet/carpentertutoring/archive/master.tar.gz
-CMD fetch -o /tmp/phpmailer.zip https://github.com/PHPMailer/PHPMailer/archive/master.zip
-CMD tar -xzvf /tmp/master.tar.gz -C /var/www
-CMD tar -xzvf /tmp/phpmailer.zip -C /var/www
+CMD fetch -o - http://git.53hor.net/53hornet/carpentertutoring/archive/master.tar.gz | tar --cd /var/www --strip-components 1 --extract --file -
+CMD fetch -o - https://github.com/PHPMailer/PHPMailer/archive/master.zip | tar --cd /var/www/PHPMailer --strip-components 1 --extract --file -
# Start server
SYSRC lighttpd_enable=YES
-SERVICE lighttpd start
+SERVICE lighttpd restart