From b0cff59ad127eb94af74d3c36d557fe9906224d4 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-postgres.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-postgres.sh --- init/00-postgres.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/00-postgres.sh b/init/00-postgres.sh index 7c001ab..9f89072 100644 --- a/init/00-postgres.sh +++ b/init/00-postgres.sh @@ -472,7 +472,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 @@ -483,7 +483,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