From 303c780d7ea52e15c62eedc1ff733dcab1ead2f1 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-mariadb.sh?= =?UTF-8?q?=20=F0=9F=97=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Modified: init/00-mariadb.sh --- init/00-mariadb.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/00-mariadb.sh b/init/00-mariadb.sh index da5c0a9..4dfbdfa 100644 --- a/init/00-mariadb.sh +++ b/init/00-mariadb.sh @@ -471,7 +471,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 @@ -482,7 +482,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