go-cleanlinks.cron 223 Bytes
Newer Older
1
#!/bin/bash
2 3 4 5 6 7
# Cron job to automatically expire outdated links, put this in cron.hourly
ACTIVATE_PATH=/path/to/virtualenv/activate
MANAGE_PATH=/path/to/go/manage.py

source ${ACTIVATE_PATH}
python ${MANAGE_PATH} expirelinks