Skip to content

Commit f725b49

Browse files
authored
deprecate pihole install script (#2730)
Signed-off-by: Simon L. <[email protected]>
1 parent 4ed5f4d commit f725b49

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

not-supported/pi-hole.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# T&M Hansson IT AB © - 2024, https://www.hanssonit.se/
44
# Copyright © 2021 Simon Lindner (https://github.com/szaimen)
55

6-
# shellcheck disable=2016,2034,2059,2178
6+
# shellcheck disable=2016,2034,2059,2178,2317
77
true
88
SCRIPT_NAME="Pi-hole"
99
SCRIPT_EXPLAINER="The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content, \
@@ -21,6 +21,10 @@ debug_mode
2121
# Check if root
2222
root_check
2323

24+
msg_box "The pi-hole script is unfortunately deprecated as it needs a rewrite since many parts in the upstream pi-hole project changed.
25+
Feel free to subscribe to https://github.com/szaimen/Nextcloud-NAS-Guide/issues/133 in the meantime."
26+
exit 1
27+
2428
# Check if already installed
2529
if ! pihole &>/dev/null
2630
then
@@ -70,6 +74,8 @@ If you press 'yes', we will remove Pi-hole, its settings and all those listed pr
7074
# Make an array from installed applications
7175
read -r -a INSTALLED <<< "$INSTALLED"
7276

77+
# /opt/pihole/uninstall.sh edit file and put setupVars variable setupVars="/etc/pihole/setupVars.conf" at 5th line or something
78+
7379
UNINSTALL="/etc/.pihole/automated install/uninstall.sh"
7480
# Uninstall pihole; we need to modify it, else it is not unattended
7581
if ! [ -f "$UNINSTALL" ] || ! grep -q "######### SCRIPT ###########" "$UNINSTALL" || ! grep -q "removeNoPurge()" "$UNINSTALL"

0 commit comments

Comments
 (0)