From efe238475a431d18808b1cd88a1e25d31780a597 Mon Sep 17 00:00:00 2001 From: nathaniel smith Date: Fri, 21 Apr 2017 23:24:22 -0700 Subject: [PATCH] remove obsolete bash scripts --- scripts/generate_home_page.sh | 20 -------------------- scripts/stats | 6 ------ 2 files changed, 26 deletions(-) delete mode 100755 scripts/generate_home_page.sh delete mode 100755 scripts/stats diff --git a/scripts/generate_home_page.sh b/scripts/generate_home_page.sh deleted file mode 100755 index 18fb382..0000000 --- a/scripts/generate_home_page.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -# TODO just make this better once the new package is ready - -# Feed JSON/tdp output from "stats" into mustache template to generate -# tilde.town homepage. Invoke periodically from crontab. - -export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games - -template=/usr/local/tildetown-scripts/tildetown/templates/frontpage.html -mustache=/usr/local/tildetown-scripts/tildetown/mustache.py -input_path=/var/www/tilde.town/tilde.json -output_path=/var/www/tilde.town/index.html - -if [ ! -f "$input_path" ]; then - print "homepage generation needs missing $input_path" - exit 1 -fi - -exec /usr/local/virtualenvs/tildetown/bin/python "$mustache" "$template" < "$input_path" > "$output_path" diff --git a/scripts/stats b/scripts/stats deleted file mode 100755 index 1f21b33..0000000 --- a/scripts/stats +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -# run stats.py in the appropriate virtualenv. -# -# invoke periodically from crontab and direct the output to -# /var/www/tilde.town/tilde.json -exec /usr/local/virtualenvs/tildetown/bin/python /usr/local/tildetown-scripts/tildetown/stats.py