From b64a54bba1795ea2dc200bf677a92087704e30cb Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 22 Feb 2025 11:53:16 +0100 Subject: [PATCH] Print a more helpful message on pihole checkout in docker containers Signed-off-by: DL6ER --- pihole | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pihole b/pihole index 6424c793..b5fae016 100755 --- a/pihole +++ b/pihole @@ -398,7 +398,10 @@ tailFunc() { piholeCheckoutFunc() { if [ -n "${DOCKER_VERSION}" ]; then - unsupportedFunc + echo -e "${CROSS} Function not supported in Docker images" + echo "Please build a custom image following the steps at" + echo "https://github.com/pi-hole/docker-pi-hole?tab=readme-ov-file#building-the-image-locally" + exit 0 else if [[ "$2" == "-h" ]] || [[ "$2" == "--help" ]]; then echo "Switch Pi-hole subsystems to a different GitHub branch