Commit a76a671e authored by Thomas Lechauve's avatar Thomas Lechauve

Extract tarball in nginx docroot

parent 42cfacae
......@@ -2,8 +2,11 @@
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# Download website tarball
exec {{ param_html5as['path_curl'] }} -sO {{ download_url }}
# Remove exsistant website
rm -r {{ param_html5as['docroot'] }}/*
# Download and extract website tarball into docroot directory
exec {{ param_html5as['path_curl'] }} -s {{ download_url }} | {{ param_html5as['path_tar'] }} -z -x -C {{ param_html5as['docroot'] }}
# Run nginx
exec {{ param_html5as['bin_nginx'] }} -c {{ param_html5as['path_nginx_conf'] }}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment