summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2016-11-08 21:58:18 +0100
committerLeif Johansson <leifj@sunet.se>2016-11-08 21:58:18 +0100
commite5c052e9ac6af6c7ddb8e37994c77f5de62f8969 (patch)
tree92204a7233facbf89415e971980e1a39fc1de5ac /scripts
parent0b4cb515cb8b1315c3780253fc65f344c0ec7ab7 (diff)
a version of update that scripthearder can manage
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-cron.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/update-cron.sh b/scripts/update-cron.sh
new file mode 100755
index 00000000..a4d5a3cb
--- /dev/null
+++ b/scripts/update-cron.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+update()
+{
+ echo "git pull"
+ git pull || return $?
+ echo
+
+ echo "make aggregate"
+ make aggregate || return $?
+ echo
+
+ echo "make test"
+ make test || return $?
+ echo
+
+ echo "make"
+ make || return $?
+ echo
+}
+
+cd /opt/swamid-metadata || exit 1
+exec update