Separate download process from running process.
[slapos.git] / software / html5as / templates / downloader.in
1 #! {{ param_html5as['path_shell'] }}
2 # BEWARE: This file is operated by slapgrid
3 # BEWARE: It will be overwritten automatically
4
5 # Remove exsistant website
6 rm -r {{ param_html5as['docroot'] }}/*
7
8 # Download and extract website tarball into docroot directory
9 exec {{ param_html5as['path_curl'] }} -s {{ download_url }} | {{ param_html5as['path_tar'] }} -z -x -C {{ param_html5as['docroot'] }}