diff options
| author | Michael Pereira Neves | 2014-06-02 14:22:42 +0200 |
|---|---|---|
| committer | Michael Pereira Neves | 2014-06-02 14:22:42 +0200 |
| commit | 90f814e5fa1c77efc58ce4a3448c4cf29f023832 (patch) | |
| tree | 42423af11f3adcf6da74771aad00162ba642b169 | |
| parent | fork test (diff) | |
| parent | [pam] fix slxlog error when TEMP_HOME_DIR was previously created by a previou... (diff) | |
| download | tm-scripts-90f814e5fa1c77efc58ce4a3448c4cf29f023832.tar.gz tm-scripts-90f814e5fa1c77efc58ce4a3448c4cf29f023832.tar.xz tm-scripts-90f814e5fa1c77efc58ce4a3448c4cf29f023832.zip | |
Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts
| -rwxr-xr-x | remote/modules/pam/data/opt/openslx/scripts/pam_script_auth | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth b/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth index ee4ff094..c647f58f 100755 --- a/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth +++ b/remote/modules/pam/data/opt/openslx/scripts/pam_script_auth @@ -27,8 +27,10 @@ PERSISTENT_HOME_DIR="${TEMP_HOME_DIR}/PERSISTENT" mount | grep -q " $TEMP_HOME_DIR " && exit 0 # no home, lets create it -mkdir -p "${TEMP_HOME_DIR}" || \ - { slxlog "pam-global-mktemphome" "Could not create '${TEMP_HOME_DIR}'."; exit 1; } +if [ ! -d "${TEMP_HOME_DIR}" ]; then + mkdir -p "${TEMP_HOME_DIR}" || \ + { slxlog "pam-global-mktemphome" "Could not create '${TEMP_HOME_DIR}'."; exit 1; } +fi # now make it a tmpfs mount -t tmpfs -o mode=700,size=100m tmpfs "${TEMP_HOME_DIR}" || \ |
