Browse Source

remove obsolete bash scripts

master
nathaniel smith 4 years ago
parent
commit
efe238475a
2 changed files with 0 additions and 26 deletions
  1. +0
    -20
      scripts/generate_home_page.sh
  2. +0
    -6
      scripts/stats

+ 0
- 20
scripts/generate_home_page.sh View File

@@ -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"

+ 0
- 6
scripts/stats View File

@@ -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

Loading…
Cancel
Save