From 6d99b4e8eefa0af31cb7759df2f9be905d339acf Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 28 Apr 2016 21:58:18 +0200 Subject: phil should only be a user on jenkins-test-vm --- update_jdn.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/update_jdn.sh b/update_jdn.sh index 0064a140..b06b1ce9 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -57,19 +57,17 @@ if ! getent passwd jenkins-adm > /dev/null ; then sudo adduser --system --shell /bin/bash --no-create-home --ingroup jenkins-adm --disabled-login --no-create-home jenkins-adm sudo usermod -G jenkins jenkins-adm fi -for user in helmut holger mattia lunar philh phil ; do +for user in helmut holger mattia lunar phil ; do if [ "$user" = "lunar" ] && [ "$HOSTNAME" != "jenkins" ] ; then # lunar only wants to configure jekyll continue fi - if [ "$user" = "phil" ] && [ "$HOSTNAME" != "jenkins-test-vm" ] ; then + if [ "$user" = "phil" ] && [ "$HOSTNAME" = "jenkins-test-vm" ] ; then # phil only wants to test stuff sudo adduser $user libvirt sudo adduser $user libvirt-qemu continue - fi - if [ "$user" = "philh" ] && [ "$HOSTNAME" != "jenkins-test-vm" ] ; then - # philh only wants to test stuff + elif [ "$user" = "phil" ] ; then continue fi # actually create the user -- cgit v1.2.3-70-g09d2