From 93858a4c34dd4007c72e915ed175bcdc24bbdadd Mon Sep 17 00:00:00 2001 From: Adam Spragg Date: Thu, 31 May 2018 23:25:50 +0100 Subject: First fully working config and content for the site --- hourly.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 hourly.sh (limited to 'hourly.sh') diff --git a/hourly.sh b/hourly.sh new file mode 100755 index 0000000..c865435 --- /dev/null +++ b/hourly.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +DOMAIN="spragg-ssl.co.uk" +SITEROOT="/srv/www/$DOMAIN" + +DATE=`/bin/date +%Y-%m-%d` +LOGFILE="$SITEROOT/log/updates.$DATE.log" +TSFMT="%b %d %H:%M:%S" + + +# Update rawdog +/usr/bin/rawdog --dir "$SITEROOT/rawdog" --update --write 2>&1 | /usr/bin/ts "$TSFMT rawdog:" >>$LOGFILE -- cgit v1.2.1