#! /bin/bash
#
# note this is deployed for subdirectory NEWSITE and if this moves, it breaks things
#
#
/bin/rm -f ~/home/wmxmorg/public_html/radioactivity/feeds/*.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/onair.xml -O /home/wmxmorg/public_html/radioactivity/feeds/onair.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last10.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last10.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last25.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last25.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last10mins.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last10mins.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/lasthour.xml -O /home/wmxmorg/public_html/radioactivity/feeds/lasthour.xml

# bdh MT limits us to a 5 minute cronjob at the least. Max runtime is 15mins. However
# feeds update every 3 mins on the RA side. So lets be a little tricky, do a 1min sleep, and then
# fire off the same set of commands to pull feeds
sleep 30s
#
/bin/rm -f ~/home/wmxmorg/public_html/radioactivity/feeds/*.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/onair.xml -O /home/wmxmorg/public_html/radioactivity/feeds/onair.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last10.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last10.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last25.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last25.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/last10mins.xml -O /home/wmxmorg/public_html/radioactivity/feeds/last10mins.xml
/usr/bin/wget -q http://wmxm.radioactivity.fm/feeds/lasthour.xml -O /home/wmxmorg/public_html/radioactivity/feeds/lasthour.xml



