From 1163c1a0d9e028f171da35faa914f82dd1e68eaa Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 14 Jul 2024 10:42:23 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=20Modified:=20rootfs/usr/local/etc?= =?UTF-8?q?/docker/init.d/zz-default.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/zz-default.sh --- rootfs/usr/local/etc/docker/init.d/zz-default.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-default.sh b/rootfs/usr/local/etc/docker/init.d/zz-default.sh index 7c30cd3..0a9f016 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-default.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-default.sh @@ -9,11 +9,11 @@ # @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments # @@Created : Monday, Aug 28, 2023 18:48 EDT # @@File : zz-default.sh -# @@Description : +# @@Description : # @@Changelog : New script # @@TODO : Better documentation -# @@Other : -# @@Resource : +# @@Other : +# @@Resource : # @@Terminal App : no # @@sudo/root : no # @@Template : other/start-service @@ -124,8 +124,8 @@ SERVICE_GID="0" # set the group id # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # execute command variables - keep single quotes variables will be expanded later EXEC_CMD_BIN='apprise' # command to execute -EXEC_CMD_ARGS='' # command arguments -EXEC_PRE_SCRIPT='' # execute script before +EXEC_CMD_ARGS='' # command arguments +EXEC_PRE_SCRIPT='' # execute script before # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Is this service a web server IS_WEB_SERVER="no" @@ -574,7 +574,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_cmd() { gosu $RUNAS_USER "$@" || return 1; } elif [ "$(builtin type -P runuser)" ]; then