diff --git a/rootfs/usr/local/etc/docker/init.d/zz-echoip.sh b/rootfs/usr/local/etc/docker/init.d/zz-echoip.sh index a271efa..930d9d0 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-echoip.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-echoip.sh @@ -473,7 +473,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; }