mirror of
https://github.com/casjaysdevdocker/lenpaste
synced 2025-09-18 03:57:39 -04:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/01-lenpaste.sh
This commit is contained in:
@@ -108,7 +108,7 @@ RUNAS_USER="root" # normally root
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# 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='lenpaste' # command to execute
|
EXEC_CMD_BIN='lenpaste' # command to execute
|
||||||
EXEC_CMD_ARGS='$LENPASTE_RUN_CMMANDS' # command arguments
|
EXEC_CMD_ARGS='$LENPASTE_RUN_COMMANDS' # 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
|
||||||
@@ -184,7 +184,7 @@ ADDITIONAL_CONFIG_DIRS=""
|
|||||||
CMD_ENV=""
|
CMD_ENV=""
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# Overwrite based on file/directory
|
# Overwrite based on file/directory
|
||||||
if ! echo "$LENPASTE_ADDRESS" | grep -q ":[0-9][0-9]"; then
|
if ! echo "$LENPASTE_ADDRESS" | grep -q ':[0-9][0-9]'; then
|
||||||
LENPASTE_ADDRESS="$LENPASTE_ADDRESS:$SERVICE_PORT"
|
LENPASTE_ADDRESS="$LENPASTE_ADDRESS:$SERVICE_PORT"
|
||||||
fi
|
fi
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@@ -325,7 +325,7 @@ __update_conf_files() {
|
|||||||
if [ -d "/data/lenpaste/html/themes" ]; then
|
if [ -d "/data/lenpaste/html/themes" ]; then
|
||||||
RUN_CMD+="-ui-themes-dir /data/lenpaste/html/themes,"
|
RUN_CMD+="-ui-themes-dir /data/lenpaste/html/themes,"
|
||||||
fi
|
fi
|
||||||
LENPASTE_RUN_CMMANDS="${RUN_CMD//,/ }"
|
LENPASTE_RUN_COMMANDS="${RUN_CMD//,/ }"
|
||||||
# exit function
|
# exit function
|
||||||
return $exitCode
|
return $exitCode
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user