diff options
author | Leif Johansson <leifj@sunet.se> | 2016-11-08 21:58:18 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2016-11-08 21:58:18 +0100 |
commit | e5c052e9ac6af6c7ddb8e37994c77f5de62f8969 (patch) | |
tree | 92204a7233facbf89415e971980e1a39fc1de5ac | |
parent | 0b4cb515cb8b1315c3780253fc65f344c0ec7ab7 (diff) |
a version of update that scripthearder can manage
-rwxr-xr-x | scripts/update-cron.sh | 23 |
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 |