summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-05-22 17:20:45 +0200
committerHolger Levsen <holger@layer-acht.org>2016-05-22 17:20:45 +0200
commit361d04e70ec83ced8d7d8b17e0b778176d687316 (patch)
tree0a4f5b67e4f195ee89de142511a23a470234819e
parent96fe3bc32f3b2e4c14ee3efcff4d621ae0b7f45a (diff)
downloadjenkins.debian.net-361d04e70ec83ced8d7d8b17e0b778176d687316.tar.xz
create user phil on jenkins host too
-rwxr-xr-xupdate_jdn.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh
index c70c571e..ee258b7a 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -54,7 +54,8 @@ for user in helmut holger mattia lunar phil ; do
sudo adduser $user libvirt
sudo adduser $user libvirt-qemu
continue
- elif [ "$user" = "phil" ] ; then
+ elif [ "$user" = "phil" ] && ( ! [ "$HOSTNAME" = "jenkins" ] || [ "$HOSTNAME" = "jenkins-test-vm" ] ) ; then
+ # create phil on jenkins and jenkins-test-vm only
continue
fi
# actually create the user