Created
May 24, 2012 20:04
-
-
Save thefinn93/2783893 to your computer and use it in GitHub Desktop.
CJDNS map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
LOGFILE="/var/log/cjdnsmap.log" | |
CJDADMIN_IP="127.0.0.1" | |
CJDADMIN_PORT="11234" | |
CJDADMIN_PASS="hax" | |
date > $LOGFILE | |
/home/finn/cjdnsmap/cjdnsmap.py $CJDADMIN_IP $CJDADMIN_PORT $CJDADMIN_PASS /home/finn/cjdnsmap/map.png >> $LOGFILE | |
cp -v /home/finn/cjdnsmap/map.png /var/www/map.png >> $LOGFILE | |
/home/finn/cjdnsmap/cjdnsmap.py $CJDADMIN_IP $CJDADMIN_PORT $CJDADMIN_PASS /home/finn/cjdnsmap/map.svg >> $LOGFILE | |
cp -v /home/finn/cjdnsmap/map.svg /var/www/map.svg >> $LOGFILE | |
echo "rsyncing them to thefinn93.com" >> $LOGFILE | |
rsync -v --rsh="ssh -p2200" /home/finn/cjdnsmap/map.png [email protected]:/var/www/static/cjdns/map.png/map.png >> $LOGFILE & | |
rsync -v --rsh="ssh -p2200" /home/finn/cjdnsmap/map.svg [email protected]:/var/www/static/cjdns/map/map.svg >> $LOGFILE & | |
date >> $LOGFILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment