]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
Added script to lock the testsystem.
authorMarjan Schiller <marjan.schiller@profitbricks.com>
Mon, 15 Jul 2013 14:16:41 +0000 (16:16 +0200)
committerMarjan Schiller <marjan.schiller@profitbricks.com>
Mon, 15 Jul 2013 14:16:41 +0000 (16:16 +0200)
lock_testsystem.sh [new file with mode: 0755]

diff --git a/lock_testsystem.sh b/lock_testsystem.sh
new file mode 100755 (executable)
index 0000000..07d0fe0
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+export
+echo
+
+LOCK_IN_SECONDS=$((60*$LOCK_IN_MINUTES))
+
+#
+# check if mail should be sent
+#
+echo "Locking Testsystem for $LOCK_IN_MINUTES Minutes ($LOCK_IN_SECONDS seconds)"
+sleep $LOCK_IN_SECONDS
+figlet Ok
+exit 0