Allow pihole checkout on any image rather than just dev/nightly images - sometimes it is useful to troubleshoot

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner 2022-05-23 16:59:50 +01:00
parent d083079b17
commit 6037832d5d
No known key found for this signature in database
GPG Key ID: 872950F3ECF2B173
1 changed files with 0 additions and 5 deletions

View File

@ -76,11 +76,6 @@ sed -i $'s/)\s*uninstallFunc/) unsupportedFunc/g' /usr/local/bin/pihole
# pihole -r / pihole reconfigure
sed -i $'s/)\s*reconfigurePiholeFunc/) unsupportedFunc/g' /usr/local/bin/pihole
if [[ "${PIHOLE_DOCKER_TAG}" != "dev" && "${PIHOLE_DOCKER_TAG}" != "nightly" ]]; then
# If we are on a version other than dev or nightly, disable `pihole checkout`, otherwise it is useful to have for quick troubleshooting sometimes
sed -i $'s/)\s*piholeCheckoutFunc/) unsupportedFunc/g' /usr/local/bin/pihole
fi
if [ ! -f /.piholeFirstBoot ]; then
touch /.piholeFirstBoot
fi