История изменений
Исправление intelfx, (текущая версия) :
Чтобы все сервисы его видели при их запуске от любых юзеров.
Так пойдёт?
$ sudo systemctl set-environment PATH=/test:/usr/local/sbin:/usr/local/bin:/usr/bin
$ echo -e '#/bin/sh\necho Hello world' | sudo install -Dm755 /dev/stdin /test/test.sh
$ sudo systemd-run -t /usr/bin/env test.sh
Running as unit: run-u3704.service
Press ^] three times within 1s to disconnect TTY.
Hello world
$
Исправление intelfx, :
$ sudo systemctl set-environment PATH=/test:/usr/local/sbin:/usr/local/bin:/usr/bin
$ echo -e '#/bin/sh\necho Hello world' | sudo install -Dm755 /dev/stdin /test/test.sh
$ sudo systemd-run -t /usr/bin/env test.sh
Running as unit: run-u3704.service
Press ^] three times within 1s to disconnect TTY.
Hello world
$
Исправление intelfx, :
$ sudo systemctl set-environment PATH=/test:/usr/local/sbin:/usr/local/bin:/usr/bin
$ echo -e '#/bin/sh\necho Hello world' | sudo install -Dm755 /dev/stdin /test/test.sh
$ sudo systemd-run -t /usr/bin/env test.sh
Running as unit: run-u3704.service
Press ^] three times within 1s to disconnect TTY.
Hello world
$
Исходная версия intelfx, :
$ sudo systemctl set-environment PATH=/test:/usr/local/sbin:/usr/local/bin:/usr/bin
$ echo -e '#/bin/sh\necho Hello world' | sudo install -Dm755 /dev/stdin /test/test.sh
$ sudo systemd-run -t /usr/bin/env test.sh
Running as unit: run-u3704.service
Press ^] three times within 1s to disconnect TTY.
Hello world
$