From: Marjan Schiller Date: Mon, 15 Jul 2013 14:16:41 +0000 (+0200) Subject: Added script to lock the testsystem. X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=0645a2a565af350bc57d3f8ce31fb718a7197d46;p=profitbricks%2Fjenkins-build-scripts.git Added script to lock the testsystem. --- diff --git a/lock_testsystem.sh b/lock_testsystem.sh new file mode 100755 index 0000000..07d0fe0 --- /dev/null +++ b/lock_testsystem.sh @@ -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