summaryrefslogtreecommitdiffstats
path: root/core/modules/hardware-stats
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-23 13:19:09 +0200
committerSimon Rettberg2020-09-23 13:19:09 +0200
commit368579ee5498b5051cc32fe42df2caff2573fc74 (patch)
treee67066b506e56fbfa6db634caa85fe72657ff5c0 /core/modules/hardware-stats
parent[idleaction] Disable screensaver in remoteaccess mode (diff)
downloadmltk-368579ee5498b5051cc32fe42df2caff2573fc74.tar.gz
mltk-368579ee5498b5051cc32fe42df2caff2573fc74.tar.xz
mltk-368579ee5498b5051cc32fe42df2caff2573fc74.zip
[*] Remove "export PATH..." -> DefaultEnvironment= in system.conf.d
Since we can set PATH for everything spawned by systemd, this boilerplate code is not needed anymore. Makes future changes much easier.
Diffstat (limited to 'core/modules/hardware-stats')
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats2
-rwxr-xr-xcore/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-report2
2 files changed, 0 insertions, 4 deletions
diff --git a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
index d059657e..dd334cc7 100755
--- a/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
+++ b/core/modules/hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats
@@ -8,8 +8,6 @@
export LANG=C
export LC_ALL=C
-export PATH=$PATH:/opt/openslx/sbin:/opt/openslx/bin
-
touch "/tmp/hw-delete-list" || exit 10
chmod 0600 "/tmp/hw-delete-list" || exit 11
echo -n "" > "/tmp/hw-delete-list" || exit 12
diff --git a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-report b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-report
index 6d137f40..a2dbbd56 100755
--- a/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-report
+++ b/core/modules/hardware-stats/data/opt/openslx/system-check/hooks.d/50-hardware-report
@@ -1,7 +1,5 @@
#!/bin/ash
-export PATH=$PATH:/opt/openslx/sbin:/opt/openslx/bin
-
. /opt/openslx/config
disable_remote_logging() {