diff options
author | Jonathan Bauer | 2013-11-28 18:27:21 +0100 |
---|---|---|
committer | Jonathan Bauer | 2013-11-28 18:27:21 +0100 |
commit | 0c41abcf71fee5850c23efd2b3d07e624a53f9da (patch) | |
tree | ae942918e8fdc41f692c72a68374fb7895be489d /server | |
parent | [pam] fix missing export PATH for pam-close (diff) | |
download | tm-scripts-0c41abcf71fee5850c23efd2b3d07e624a53f9da.tar.gz tm-scripts-0c41abcf71fee5850c23efd2b3d07e624a53f9da.tar.xz tm-scripts-0c41abcf71fee5850c23efd2b3d07e624a53f9da.zip |
[pam] fix mount options
Diffstat (limited to 'server')
-rw-r--r-- | server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent index 65634716..f6a295f2 100644 --- a/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent +++ b/server/modules/pam-freiburg/opt/openslx/scripts/pam_script_mount_persistent @@ -7,8 +7,6 @@ # under /home/<user>/PERSISTENT using kerberos. # -PERSISTENT_HOME_DIR="${TEMP_HOME_DIR}/PERSISTENT" - # Only run this if the user is a student # These have a gid > 1000 if [ $(id -g ${PAM_USER}) -ge 1000 ]; then @@ -36,7 +34,7 @@ if [ $(id -g ${PAM_USER}) -ge 1000 ]; then SIGNAL=$(mktemp) rm -f -- "${SIGNAL}" - (mount "${MOUNT_OPTS}" "${FILESERVER}:${VOLUME}" "${PERSISTENT_HOME_DIR}" || touch "${SIGNAL}") & + (mount ${MOUNT_OPTS} "${FILESERVER}:${VOLUME}" "${PERSISTENT_HOME_DIR}" || touch "${SIGNAL}") & MOUNT_PID=$! for COUNTER in 1 2 4 4; do kill -0 "${MOUNT_PID}" 2>/dev/null || break |