diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-11-09 08:57:00 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-11-09 08:57:00 +0100 |
commit | d2f4bf3050f663b39b3241ccd39eed6390da9dac (patch) | |
tree | 8b37a253788c5d1ae0c9cf39394c1f715393ec62 | |
parent | 6e3f93938ba20b3177988f8c0b9c224a9aa876a6 (diff) | |
download | jenkins.debian.net-d2f4bf3050f663b39b3241ccd39eed6390da9dac.tar.xz |
fix: local can only be used in a function
-rwxr-xr-x | update_jdn.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/update_jdn.sh b/update_jdn.sh index d2a51fce..972d7043 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -36,11 +36,11 @@ for user in helmut holger mattia lunar ; do fi if ! getent passwd $user > /dev/null ; then if [ "$user" = "mattia" ] ; then - local shell=/bin/zsh + usershell=/bin/zsh else - local shell=/bin/bash + usershell=/bin/bash fi - sudo adduser --gecos "" --shell "$shell" --disabled-password $user + sudo adduser --gecos "" --shell "$usershell" --disabled-password $user if [ "$user" = "holger" ] ; then sudo usermod -G jenkins,jenkins-adm,sudo,adm $user elif [ "$user" != "lunar" ] ; then |