mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
Echo mod debug status
This commit is contained in:
+7
-6
@@ -11,6 +11,13 @@ MOD_SCRIPT_VER="3"
|
|||||||
SCRIPTS_DIR="/custom-cont-init.d"
|
SCRIPTS_DIR="/custom-cont-init.d"
|
||||||
SERVICES_DIR="/custom-services.d"
|
SERVICES_DIR="/custom-services.d"
|
||||||
|
|
||||||
|
if [[ ${DOCKER_MODS_DEBUG,,} = "true" ]]; then
|
||||||
|
CURL_NOISE_LEVEL="-v"
|
||||||
|
echo "[mod-init] Running in debug mode"
|
||||||
|
else
|
||||||
|
CURL_NOISE_LEVEL="--silent"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set executable bit on cont-init and services built into the image
|
# Set executable bit on cont-init and services built into the image
|
||||||
set_legacy_executable_bits() {
|
set_legacy_executable_bits() {
|
||||||
mkdir -p /etc/{cont-init.d,services.d}
|
mkdir -p /etc/{cont-init.d,services.d}
|
||||||
@@ -19,12 +26,6 @@ set_legacy_executable_bits() {
|
|||||||
/etc/services.d/*/* 2>/dev/null || true
|
/etc/services.d/*/* 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ ${DOCKER_MODS_DEBUG,,} = "true" ]]; then
|
|
||||||
CURL_NOISE_LEVEL="-v"
|
|
||||||
else
|
|
||||||
CURL_NOISE_LEVEL="--silent"
|
|
||||||
fi
|
|
||||||
|
|
||||||
tamper_check() {
|
tamper_check() {
|
||||||
# Tamper check custom service locations
|
# Tamper check custom service locations
|
||||||
if [[ -d "${SERVICES_DIR}" ]] && [[ -n "$(find ${SERVICES_DIR}/* ! -user root 2>/dev/null)" ]]; then
|
if [[ -d "${SERVICES_DIR}" ]] && [[ -n "$(find ${SERVICES_DIR}/* ! -user root 2>/dev/null)" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user