diff options
author | Simon Rettberg | 2018-03-09 14:34:32 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-03-09 14:34:32 +0100 |
commit | f0f6940ead488bf3ca6f00aa153ecbbc29cc3c3b (patch) | |
tree | 6623a7cd6b64f6df9b1382d467b560c5463bc09c /core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd | |
parent | [pam-slx-plug] Add missing homeDirectory to ldapsearch, fix mount.d path (diff) | |
download | mltk-f0f6940ead488bf3ca6f00aa153ecbbc29cc3c3b.tar.gz mltk-f0f6940ead488bf3ca6f00aa153ecbbc29cc3c3b.tar.xz mltk-f0f6940ead488bf3ca6f00aa153ecbbc29cc3c3b.zip |
[pam-slx-plug] fix variable naming issues/mismatch
Diffstat (limited to 'core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd')
-rw-r--r-- | core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd b/core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd index 20b7991d..006f1c81 100644 --- a/core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd +++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/common/homedir-passwd @@ -19,9 +19,9 @@ fi readonly USER_HOME # Add/replace passwd entry if it doesn't exist yet -PASSWD="${USER_NAME}:x:${USER_UID}:${USER_GID}:${USER_NAME}:${USER_HOME}:/bin/bash" -readonly PASSWD -if ! grep -Fxq -- "${PASSWD}" /etc/passwd; then +LINE_PASS="${USER_NAME}:x:${USER_UID}:${USER_GID}:${USER_NAME}:${USER_HOME}:/bin/bash" +readonly LINE_PASS +if ! grep -Fxq -- "${LINE_PASS}" /etc/passwd; then sed -i "/^${USER_NAME}:/d" /etc/passwd - echo "${PASSWD}" >> /etc/passwd + echo "${LINE_PASS}" >> /etc/passwd fi |