This repository has been archived on 2019-12-12. You can view files and clone it, but cannot push or open issues/pull-requests.
tildetown-scripts/scripts/generate_home_page.sh

14 lines
400 B
Bash
Raw Normal View History

2015-07-26 06:23:01 +00:00
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
source /var/local/venvs/tildetown/bin/activate
2015-08-02 00:34:59 +00:00
stats=/usr/bin/stats
2015-07-26 06:23:01 +00:00
template=/var/www/tilde.town/template.index.html
mustache=/var/local/tildetown/scripts/mustache.hy
output_path=/var/www/tilde.town/index.html
($stats || echo '{}') | hy $mustache $template > $output_path
2015-08-02 00:34:59 +00:00
deactivate