From 71ac240cacd7326a3cec97ab1878da927debb84e Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 27 Dec 2019 21:32:14 +0100 Subject: [PATCH] script to install pihole doesn't work on Debian9 --- omr-pihole.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/omr-pihole.sh b/omr-pihole.sh index 1826611..20a023f 100644 --- a/omr-pihole.sh +++ b/omr-pihole.sh @@ -1,4 +1,13 @@ #!/bin/sh +if [ -f /etc/os-release ]; then + . /etc/os-release +else + . /usr/lib/os-release +fi +if [ "$ID" = "debian" ] && [ "$VERSION_ID" = "9" ]; then + echo "This script doesn't work with Debian Stretch (9.x)" + exit 1 +fi echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" echo "You can select any interface and set any IPs during Pi-hole configuration, this will be modified for OpenMPTCProuter at the end." echo "Don't apply Pi-hole firewall rules."