summaryrefslogtreecommitdiff
path: root/hourly.sh
diff options
context:
space:
mode:
authorAdam Spragg <adam@spra.gg>2018-05-31 23:25:50 +0100
committerAdam Spragg <adam@spra.gg>2018-05-31 23:25:50 +0100
commit93858a4c34dd4007c72e915ed175bcdc24bbdadd (patch)
tree40279e7f6f521f0abc97a9f317ed500acb0d141e /hourly.sh
First fully working config and content for the site
Diffstat (limited to 'hourly.sh')
-rwxr-xr-xhourly.sh12
1 files changed, 12 insertions, 0 deletions
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