mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix OpenRC init script error 'openrc-run.sh: source: not found' (#6614)
To avoid error message: user@server ~ % /etc/init.d/k3s status /lib/rc/sh/openrc-run.sh: 28: /etc/init.d/k3s: source: not found /lib/rc/sh/openrc-run.sh: 29: /etc/init.d/k3s: source: not found * status: stopped I've replaced `source` with `sourcex`, defined in https://github.com/OpenRC/openrc/blob/master/sh/openrc-run.sh.in#L30 Classic shell `.` also works. Tested in Devuan 5 Daedalus (based on Debian 12 bookworm / testing), package `openrc` version 0.45.2-2. Signed-off-by: Alexey Vazhnov <vazhnov@boot-keys.org>
This commit is contained in:
parent
97f162291a
commit
870d9c32b0
@ -836,8 +836,8 @@ respawn_delay=5
|
||||
respawn_max=0
|
||||
|
||||
set -o allexport
|
||||
if [ -f /etc/environment ]; then source /etc/environment; fi
|
||||
if [ -f ${FILE_K3S_ENV} ]; then source ${FILE_K3S_ENV}; fi
|
||||
if [ -f /etc/environment ]; then sourcex /etc/environment; fi
|
||||
if [ -f ${FILE_K3S_ENV} ]; then sourcex ${FILE_K3S_ENV}; fi
|
||||
set +o allexport
|
||||
EOF
|
||||
$SUDO chmod 0755 ${FILE_K3S_SERVICE}
|
||||
|
Loading…
Reference in New Issue
Block a user