diff options
author | Simon Rettberg | 2020-09-23 13:19:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-09-23 13:19:09 +0200 |
commit | 368579ee5498b5051cc32fe42df2caff2573fc74 (patch) | |
tree | e67066b506e56fbfa6db634caa85fe72657ff5c0 /core/modules/idleaction/data | |
parent | [idleaction] Disable screensaver in remoteaccess mode (diff) | |
download | mltk-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/idleaction/data')
-rwxr-xr-x | core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action index 38be4f79..c30ac7fb 100755 --- a/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action +++ b/core/modules/idleaction/data/opt/openslx/scripts/idleaction-scheduled_action @@ -1,6 +1,7 @@ #!/bin/ash -export PATH="$PATH:/opt/openslx/bin:/opt/openslx/sbin" +# Called via mgmt SSH so PATH might be wrong! +export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/openslx/sbin:/opt/openslx/bin" if ! touch "/run"; then echo "Only root can call this" >&2 |