mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-26 02:03:14 -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"
|
||||
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_legacy_executable_bits() {
|
||||
mkdir -p /etc/{cont-init.d,services.d}
|
||||
@@ -19,12 +26,6 @@ set_legacy_executable_bits() {
|
||||
/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 custom service locations
|
||||
if [[ -d "${SERVICES_DIR}" ]] && [[ -n "$(find ${SERVICES_DIR}/* ! -user root 2>/dev/null)" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user