Disable log flush on docker container

Signed-off-by: Christian König <github@yubiuser.dev>
This commit is contained in:
Christian König
2025-08-18 20:09:04 +02:00
parent c901aa1a2e
commit a734733a87

8
pihole
View File

@@ -92,8 +92,12 @@ debugFunc() {
}
flushFunc() {
"${PI_HOLE_SCRIPT_DIR}"/piholeLogFlush.sh "$@"
exit 0
if [ -n "${DOCKER_VERSION}" ]; then
unsupportedFunc
else
"${PI_HOLE_SCRIPT_DIR}"/piholeLogFlush.sh "$@"
exit 0
fi
}
# Deprecated function, should be removed in the future