From ac6e0985a8273727b348c158332680be454cb509 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 14 Jul 2024 10:46:19 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Modified:=20rootfs/usr/local/etc?= =?UTF-8?q?/docker/init.d/ntfy.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/ntfy.sh --- rootfs/usr/local/etc/docker/init.d/ntfy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/ntfy.sh b/rootfs/usr/local/etc/docker/init.d/ntfy.sh index 5b0519c..219b62c 100755 --- a/rootfs/usr/local/etc/docker/init.d/ntfy.sh +++ b/rootfs/usr/local/etc/docker/init.d/ntfy.sh @@ -413,7 +413,7 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # set switch user command if [ "$SERVICE_USER" = "root" ] || [ -z "$SERVICE_USER" ]; then - su_cmd() { eval "$*" || return 1; } + su_cmd() { eval "$@" || return 1; } elif [ "$(builtin type -P gosu)" ]; then su_cmd() { gosu $SERVICE_USER "$@" || return 1; } elif [ "$(builtin type -P runuser)" ]; then @@ -424,7 +424,7 @@ elif [ "$(builtin type -P su)" ]; then su_cmd() { su -s /bin/sh - $SERVICE_USER -c "$@" || return 1; } else echo "Can not switch to $SERVICE_USER: attempting to run as root" - su_cmd() { eval "$*" || return 1; } + su_cmd() { eval "$@" || return 1; } fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Change to working directory