diff options
-rwxr-xr-x | update_jdn.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index d2cd94cb..b1d4a246 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -51,9 +51,13 @@ if ! getent group jenkins-adm > /dev/null ; then sudo addgroup --system jenkins-adm fi 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 adduser --system --shell /bin/bash --hone /home/jenkins-adm --ingroup jenkins-adm --disabled-login jenkins-adm sudo usermod -G jenkins jenkins-adm fi +if [ ! -d /home/jenkins-adm ]; + sudo mkdir /home/jenkins-adm + sudo chown jenkins-adm.jenkins-adm /home/jenkins-adm +fi declare -A user_host_groups u_shell |