mirror of
https://github.com/casjaysdevdocker/transmission
synced 2025-01-18 12:34:22 -05:00
🗃 Modified: rootfs/usr/local/etc/docker/init.d/transmission.sh 🗃
Modified: rootfs/usr/local/etc/docker/init.d/transmission.sh
This commit is contained in:
parent
5d107aac22
commit
dde541d4d1
@ -398,7 +398,7 @@ fi
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# set switch user command
|
# set switch user command
|
||||||
if [ "$SERVICE_USER" = "root" ] || [ -z "$SERVICE_USER" ]; then
|
if [ "$SERVICE_USER" = "root" ] || [ -z "$SERVICE_USER" ]; then
|
||||||
su_cmd() { eval "$*" || return 1; }
|
su_cmd() { eval "$@" || return 1; }
|
||||||
elif [ "$(builtin type -P gosu)" ]; then
|
elif [ "$(builtin type -P gosu)" ]; then
|
||||||
su_cmd() { gosu $SERVICE_USER "$@" || return 1; }
|
su_cmd() { gosu $SERVICE_USER "$@" || return 1; }
|
||||||
elif [ "$(builtin type -P runuser)" ]; then
|
elif [ "$(builtin type -P runuser)" ]; then
|
||||||
@ -409,7 +409,7 @@ elif [ "$(builtin type -P su)" ]; then
|
|||||||
su_cmd() { su -s /bin/sh - $SERVICE_USER -c "$@" || return 1; }
|
su_cmd() { su -s /bin/sh - $SERVICE_USER -c "$@" || return 1; }
|
||||||
else
|
else
|
||||||
echo "Can not switch to $SERVICE_USER: attempting to run as root"
|
echo "Can not switch to $SERVICE_USER: attempting to run as root"
|
||||||
su_cmd() { eval "$*" || return 1; }
|
su_cmd() { eval "$@" || return 1; }
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Change to working directory
|
# Change to working directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user