From 368579ee5498b5051cc32fe42df2caff2573fc74 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 23 Sep 2020 13:19:09 +0200 Subject: [*] 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. --- .../hardware-stats/data/opt/openslx/scripts/systemd-hardware_stats | 2 -- .../data/opt/openslx/system-check/hooks.d/50-hardware-report | 2 -- 2 files changed, 4 deletions(-) (limited to 'core/modules/hardware-stats') 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() { -- cgit v1.2.3-55-g7522