From 5a519617cdeeec38d8114d8678ab3d199ebfee72 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 14 Jul 2024 10:48:20 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Modified:=20init/00-redis.sh=20?= =?UTF-8?q?=F0=9F=97=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified: init/00-redis.sh --- init/00-redis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/00-redis.sh b/init/00-redis.sh index 5a444d8..10d0c60 100755 --- a/init/00-redis.sh +++ b/init/00-redis.sh @@ -447,7 +447,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 @@ -458,7 +458,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