summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2019-04-08 15:36:04 +0200
committerSimon Rettberg2019-04-08 15:36:04 +0200
commit18c7cd7f6c6549e8a753d61532714e4c83ac3545 (patch)
tree5e3b6f3b3b280e4d72a5acfffb1ab02916def91c /core/modules/hardware-stats
parent[run-virt/pam-slx-plug] Honor SHARE_NO_HOME_WARN (diff)
downloadmltk-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')
-rw-r--r--core/modules/hardware-stats/data/opt/openslx/scripts/pam_script_ses_open.d/usage_stats5
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