#!/bin/sh
#
# OperStats Crontab Script - Move tldstats.html to another location
#
# Instructions for installing this script can be found in the crontab file.

# People with your webserver on another machine: Sorry, this script doesn't
# support FTP *yet*. You've two choices: Make this script FTP the files,
# (send me the updated script if you do :)) or, move this to a webserver on
# *this* machine, and call that url from your site.

# Change this to the directory for OperStats (This is the default)
cd ~/operstats

# Put the full path to where you want the tldstats.html to end up here.
# Make sure you have write privilages to this directory.
WHERE="~/public_html"

# Leave the rest alone.

if [ -f tldstats.html ] ; then
  mv tldstats.html $WHERE
  chmod 644 $WHERE/tldstats.html
fi
exit 0
