From 98a096b7d68c150b545a2e1f37cca0eaa36dd386 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 14 Jul 2024 10:45:02 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Modified:=20rootfs/usr/local/etc?= =?UTF-8?q?/docker/init.d/inn.sh=20=F0=9F=97=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified: rootfs/usr/local/etc/docker/init.d/inn.sh --- rootfs/usr/local/etc/docker/init.d/inn.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/inn.sh b/rootfs/usr/local/etc/docker/init.d/inn.sh index f89a473..6424a0c 100755 --- a/rootfs/usr/local/etc/docker/init.d/inn.sh +++ b/rootfs/usr/local/etc/docker/init.d/inn.sh @@ -363,8 +363,7 @@ __run_start_script() { eval env -i HOME="$home" LC_CTYPE="$lc_type" PATH="$path" HOSTNAME="$sysname" USER="${SERVICE_USER:-$RUNAS_USER}" $extra_env sh -c "$cmd_exec" || return 10 else - su_cmd sh -c "$cmd_exec" || - eval "$cmd_exec" || return 10 + su_cmd "$cmd_exec" || eval "$cmd_exec" || return 10 fi fi fi @@ -472,7 +471,7 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # set switch user command if [ "$RUNAS_USER" = "root" ]; then - su_cmd() { eval "$*" || return 1; } + su_cmd() { eval "$@" || return 1; } elif [ "$(builtin type -P gosu)" ]; then su_exec="gosu $RUNAS_USER" su_cmd() { gosu $RUNAS_USER "$@" || return 1; }