diff options
author | Simon Rettberg | 2019-04-08 15:36:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-04-08 15:36:04 +0200 |
commit | 18c7cd7f6c6549e8a753d61532714e4c83ac3545 (patch) | |
tree | 5e3b6f3b3b280e4d72a5acfffb1ab02916def91c /core/modules/hardware-stats/data/opt/openslx/scripts | |
parent | [run-virt/pam-slx-plug] Honor SHARE_NO_HOME_WARN (diff) | |
download | mltk-18c7cd7f6c6549e8a753d61532714e4c83ac3545.tar.gz mltk-18c7cd7f6c6549e8a753d61532714e4c83ac3545.tar.xz mltk-18c7cd7f6c6549e8a753d61532714e4c83ac3545.zip |
[hardware-stats] Add missing su(do) exclusion to session open hook
Diffstat (limited to 'core/modules/hardware-stats/data/opt/openslx/scripts')
-rw-r--r-- | core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats index 7c15ee1b..e2154aa7 100644 --- a/core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats +++ b/core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats @@ -1,8 +1,9 @@ +#!/bin/ash - sourced -( +if [ "x$PAM_SERVICE" != "xsu" -a "x$PAM_SERVICE" != "xsudo" ]; then sleep 3 /opt/openslx/scripts/cron-system_usage_update -) & +fi & true |