mirror of
https://github.com/casjaysdevdocker/apprise
synced 2025-01-18 12:34:35 -05:00
🗃 Modified: rootfs/usr/local/etc/docker/init.d/zz-default.sh 🗃
Modified: rootfs/usr/local/etc/docker/init.d/zz-default.sh
This commit is contained in:
parent
df80b7f5cb
commit
1163c1a0d9
@ -9,11 +9,11 @@
|
|||||||
# @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments
|
# @@Copyright : Copyright: (c) 2023 Jason Hempstead, Casjays Developments
|
||||||
# @@Created : Monday, Aug 28, 2023 18:48 EDT
|
# @@Created : Monday, Aug 28, 2023 18:48 EDT
|
||||||
# @@File : zz-default.sh
|
# @@File : zz-default.sh
|
||||||
# @@Description :
|
# @@Description :
|
||||||
# @@Changelog : New script
|
# @@Changelog : New script
|
||||||
# @@TODO : Better documentation
|
# @@TODO : Better documentation
|
||||||
# @@Other :
|
# @@Other :
|
||||||
# @@Resource :
|
# @@Resource :
|
||||||
# @@Terminal App : no
|
# @@Terminal App : no
|
||||||
# @@sudo/root : no
|
# @@sudo/root : no
|
||||||
# @@Template : other/start-service
|
# @@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
|
# execute command variables - keep single quotes variables will be expanded later
|
||||||
EXEC_CMD_BIN='apprise' # command to execute
|
EXEC_CMD_BIN='apprise' # command to execute
|
||||||
EXEC_CMD_ARGS='' # command arguments
|
EXEC_CMD_ARGS='' # command arguments
|
||||||
EXEC_PRE_SCRIPT='' # execute script before
|
EXEC_PRE_SCRIPT='' # execute script before
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Is this service a web server
|
# Is this service a web server
|
||||||
IS_WEB_SERVER="no"
|
IS_WEB_SERVER="no"
|
||||||
@ -574,7 +574,7 @@ fi
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# set switch user command
|
# set switch user command
|
||||||
if [ "$RUNAS_USER" = "root" ]; then
|
if [ "$RUNAS_USER" = "root" ]; then
|
||||||
su_cmd() { eval "$*" || return 1; }
|
su_cmd() { eval "$@" || return 1; }
|
||||||
elif [ "$(builtin type -P gosu)" ]; then
|
elif [ "$(builtin type -P gosu)" ]; then
|
||||||
su_cmd() { gosu $RUNAS_USER "$@" || return 1; }
|
su_cmd() { gosu $RUNAS_USER "$@" || return 1; }
|
||||||
elif [ "$(builtin type -P runuser)" ]; then
|
elif [ "$(builtin type -P runuser)" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user