#/bin/sh
#  Give yesterday's data, useful for WatchDog
if [ $# -eq 0 ]
then
   date "+%Y-%m-%d"
else
   date -d "+ $1 day" "+%Y-%m-%d"
fi
