diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-06-02 01:14:32 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-02 01:14:32 +0200 |
commit | 0594c1bf2864b71bcb59cf3d876067d6a7a578b5 (patch) | |
tree | 4c39a42eb0b4d20f5ee0adf39cc290229b743cf9 | |
parent | 2bff201a7737f58a843fd5f052806aca9cb9abb7 (diff) | |
download | jenkins.debian.net-0594c1bf2864b71bcb59cf3d876067d6a7a578b5.tar.xz |
reproducible Debian: add some sanity checks
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-x | init_node | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -5,6 +5,17 @@ # released under the GPLv=2 # # initial setup for new build nodes +# - this script assumes that the user running it has unlimited sudo powers… + +# let's check our assumptions first… +if [ $(sudo id -u) -ne 0 ] ; then + echo we need sudo… exiting. + exit 1 +elif [ $(id -u) -eq 0 ] ; then + echo please dont run this as root… exiting. + exit 1 +fi + START=$(date +'%s') GIT_REPO="git://anonscm.debian.org/qa/jenkins.debian.net.git" |