hnbot/cron.sh

11 lines
184 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -xe
cd /home/ekzyis/hnbot
sqlite3 hnbot.sqlite3 < hacker_news.csv.sql
venv/bin/python plot.py
mv hn_*.png plots/
rsync plots/* vps:/var/www/files/public/hn/