diff options
author | Simon Rettberg | 2019-06-28 16:56:22 +0200 |
---|---|---|
committer | root | 2019-06-28 17:12:49 +0200 |
commit | f8abc5d351b6fa2293593d394a80c83665d5729d (patch) | |
tree | e24a9ee760e50f66cf6698eaf0a73ee104b2b93b /core/modules/pam-slx-plug | |
parent | [pam-slx-plug] Move slx-plug specific hook directory (diff) | |
download | mltk-f8abc5d351b6fa2293593d394a80c83665d5729d.tar.gz mltk-f8abc5d351b6fa2293593d394a80c83665d5729d.tar.xz mltk-f8abc5d351b6fa2293593d394a80c83665d5729d.zip |
[pam-slx-plug] Move old pam_script_* hook dirs to pam dir
They're all now in subdirectories of /opt/openslx/pam/hooks.
Symlinks have been put in place where they used to reside.
Diffstat (limited to 'core/modules/pam-slx-plug')
3 files changed, 5 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'." diff --git a/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d new file mode 120000 index 00000000..db47dbe3 --- /dev/null +++ b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_close.d @@ -0,0 +1 @@ +/opt/openslx/pam/hooks/session-close.d
\ No newline at end of file diff --git a/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d new file mode 120000 index 00000000..3ae27c4f --- /dev/null +++ b/core/modules/pam-slx-plug/data/opt/openslx/scripts/pam_script_ses_open.d @@ -0,0 +1 @@ +/opt/openslx/pam/hooks/session-open.d
\ No newline at end of file |