diff options
Diffstat (limited to 'core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session')
-rwxr-xr-x | core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session index 8e7b7bff..b1e271cd 100755 --- a/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session +++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/exec_session @@ -13,8 +13,8 @@ export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/o if [ "$PAM_TYPE" = "open_session" ]; then # OPEN OPEN OPEN - # source the stuff in pam_script_ses_open.d, if it exists - for HOOK in /opt/openslx/scripts/pam_script_ses_open.d/*; do + # source the stuff in session-open.d, if it exists + for HOOK in /opt/openslx/pam/hooks/session-open.d/*; do [ -f "$HOOK" ] || continue # source it, in case of failure do nothing since these scripts are non-critical ( . "$HOOK" ) || slxlog "pam-hooks-ses-open" "Could not source '$HOOK'." @@ -23,7 +23,7 @@ if [ "$PAM_TYPE" = "open_session" ]; then elif [ "$PAM_TYPE" = "close_session" ]; then # CLOSE CLOSE CLOSE # source hooks if there are any - for HOOK in /opt/openslx/scripts/pam_script_ses_close.d/*; do + for HOOK in /opt/openslx/pam/hooks/session-close.d/*; do [ -f "$HOOK" ] || continue # failure is non-critical ( . "$HOOK" ) || slxlog "pam-hooks-ses-close" "Could not source '$HOOK'." |