-
-
Notifications
You must be signed in to change notification settings - Fork 672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deprecate pihole install script #2730
Conversation
szaimen
commented
Feb 27, 2025
•
edited
Loading
edited
6de6603
to
c1a2f5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
shellcheck
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 55 in c1a2f5c
if ! yesno_box_no "Do you want to continue nonetheless?" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 57 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 61 in c1a2f5c
INSTALLED=$(grep "Pi-hole installed programs=" "$SCRIPTS/pihole-update.sh") |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 61 in c1a2f5c
INSTALLED=$(grep "Pi-hole installed programs=" "$SCRIPTS/pihole-update.sh") |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 62 in c1a2f5c
INSTALLED="${INSTALLED##*programs=}" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 65 in c1a2f5c
if ! yesno_box_yes "These are all packets that where installed during your initial Pi-hole installation: |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 65 in c1a2f5c
if ! yesno_box_yes "These are all packets that where installed during your initial Pi-hole installation: |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 71 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 83 in c1a2f5c
msg_box "It seems like some uninstall functions changed. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 85 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 89 in c1a2f5c
check_command cp "/etc/.pihole/automated install/uninstall.sh" "$SCRIPTS"/pihole-uninstall.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 90 in c1a2f5c
check_command sed -i '/######### SCRIPT ###########/q' "$SCRIPTS"/pihole-uninstall.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 91 in c1a2f5c
check_command echo "removeNoPurge" >> "$SCRIPTS"/pihole-uninstall.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 94 in c1a2f5c
check_command yes | bash "$SCRIPTS"/pihole-uninstall.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 97 in c1a2f5c
crontab -u root -l | grep -v "pihole-update.sh" | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 98 in c1a2f5c
check_command rm "$SCRIPTS"/pihole-uninstall.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 101 in c1a2f5c
if id pihole &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 101 in c1a2f5c
if id pihole &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 103 in c1a2f5c
check_command killall -u pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 104 in c1a2f5c
check_command deluser pihole &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 105 in c1a2f5c
check_command groupdel pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 109 in c1a2f5c
rm -rf /etc/.pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 110 in c1a2f5c
rm -rf /etc/pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 111 in c1a2f5c
rm -rf /opt/pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 112 in c1a2f5c
rm -rf /usr/bin/pihole-FTL |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 113 in c1a2f5c
rm -rf /usr/local/bin/pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 114 in c1a2f5c
rm -rf /var/www/html/admin |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 115 in c1a2f5c
rm -f /var/www/html/pihole |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 118 in c1a2f5c
crontab -u root -l | grep -v "systemctl restart unbound" | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 119 in c1a2f5c
rm /etc/unbound/unbound.conf.d/pi-hole.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 122 in c1a2f5c
rm -f "$SCRIPTS/pihole-update.sh" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 125 in c1a2f5c
for program in "${INSTALLED[@]}" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 127 in c1a2f5c
apt-get purge "$program" -y |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 131 in c1a2f5c
if is_this_installed unbound |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 131 in c1a2f5c
if is_this_installed unbound |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 133 in c1a2f5c
apt-get purge unbound -y |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 137 in c1a2f5c
apt-get autoremove -y |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 140 in c1a2f5c
rm -f /var/www/html/index.lighttpd.orig |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 141 in c1a2f5c
rm -rf /etc/lighttpd |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 144 in c1a2f5c
a2dissite pihole.conf &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 145 in c1a2f5c
rm -f "$SITES_AVAILABLE/pihole.conf" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 146 in c1a2f5c
restart_webserver |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 149 in c1a2f5c
ufw delete allow 53/tcp &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 150 in c1a2f5c
ufw delete allow 53/udp &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 151 in c1a2f5c
ufw delete allow 8094/tcp &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 154 in c1a2f5c
msg_box "Pi-hole was successfully uninstalled! |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 156 in c1a2f5c
msg_box "After you hit OK, your NcVM will get restarted." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 157 in c1a2f5c
rm -f "$SCRIPTS/pi-hole.sh" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 159 in c1a2f5c
reboot |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 163 in c1a2f5c
msg_box "Before installing the Pi-hole, please make sure that you have a backup of your NcVM. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 168 in c1a2f5c
if ! yesno_box_no "Have you made a backup of your NcVM? |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 168 in c1a2f5c
if ! yesno_box_no "Have you made a backup of your NcVM? |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 172 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 176 in c1a2f5c
print_text_in_color "$ICyan" "Installing Pi-hole..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 179 in c1a2f5c
mkdir -p "$SCRIPTS" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 180 in c1a2f5c
check_command curl -sfL https://install.pi-hole.net -o "$SCRIPTS"/pihole-install.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 183 in c1a2f5c
if ! grep -q 'displayFinalMessage "${pw}"' "$SCRIPTS"/pihole-install.sh || ! grep -q "setAdminFlag$" "$SCRIPTS"/pihole-install.sh \ |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 183 in c1a2f5c
if ! grep -q 'displayFinalMessage "${pw}"' "$SCRIPTS"/pihole-install.sh || ! grep -q "setAdminFlag$" "$SCRIPTS"/pihole-install.sh \ |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 183 in c1a2f5c
if ! grep -q 'displayFinalMessage "${pw}"' "$SCRIPTS"/pihole-install.sh || ! grep -q "setAdminFlag$" "$SCRIPTS"/pihole-install.sh \ |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 184 in c1a2f5c
|| ! grep -q "chooseInterface$" "$SCRIPTS"/pihole-install.sh || ! grep -q "getStaticIPv4Settings$" "$SCRIPTS"/pihole-install.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 184 in c1a2f5c
|| ! grep -q "chooseInterface$" "$SCRIPTS"/pihole-install.sh || ! grep -q "getStaticIPv4Settings$" "$SCRIPTS"/pihole-install.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 186 in c1a2f5c
msg_box "It seems like some functions in pihole-install.sh have changed. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 188 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 192 in c1a2f5c
sed -i 's|displayFinalMessage "${pw}"|echo displayFinalMessage|' "$SCRIPTS"/pihole-install.sh # We don't want to display the final message |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 193 in c1a2f5c
sed -i "s|setAdminFlag$|echo setAdminFlag|" "$SCRIPTS"/pihole-install.sh # We want to install the web-interface and lighttpd |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 194 in c1a2f5c
sed -i "s|chooseInterface$|echo chooseInterface|" "$SCRIPTS"/pihole-install.sh # We don't want the user choose the interface |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 195 in c1a2f5c
sed -i "s|getStaticIPv4Settings$|echo getStaticIPv4Settings|" "$SCRIPTS"/pihole-install.sh # We don't want to set a static ip4 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 198 in c1a2f5c
PIHOLE_INTERFACE="$IFACE" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 199 in c1a2f5c
export PIHOLE_INTERFACE |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 202 in c1a2f5c
apt-mark unhold php"$PHPVER"* |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 205 in c1a2f5c
bash "$SCRIPTS"/pihole-install.sh | tee "$SCRIPTS"/pihole-install.report |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 208 in c1a2f5c
unset INSTALLED |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 209 in c1a2f5c
INSTALLED=$(grep "Checking for" "$SCRIPTS"/pihole-install.report | grep "will be installed" | awk '{print $8}') |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 209 in c1a2f5c
INSTALLED=$(grep "Checking for" "$SCRIPTS"/pihole-install.report | grep "will be installed" | awk '{print $8}') |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 210 in c1a2f5c
check_command rm "$SCRIPTS"/pihole-install.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 211 in c1a2f5c
check_command rm "$SCRIPTS"/pihole-install.report |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 214 in c1a2f5c
if [ -z "${INSTALLED[*]}" ] |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 214 in c1a2f5c
if [ -z "${INSTALLED[*]}" ] |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 216 in c1a2f5c
msg_bos "Something is wrong. Didn't expect that no requirement get installed. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 221 in c1a2f5c
mapfile -t INSTALLED <<< "${INSTALLED[@]}" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 224 in c1a2f5c
mkdir -p "$SCRIPTS" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 227 in c1a2f5c
cat << PIHOLE_UPDATE > "$SCRIPTS/pihole-update.sh" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 255 in c1a2f5c
chown root:root "$SCRIPTS/pihole-update.sh" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 256 in c1a2f5c
chmod 700 "$SCRIPTS/pihole-update.sh" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 259 in c1a2f5c
if ! pihole &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 259 in c1a2f5c
if ! pihole &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 261 in c1a2f5c
msg_box "Something got wrong during pihole-install.sh |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 263 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 267 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "REV_SERVER" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 267 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "REV_SERVER" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 267 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "REV_SERVER" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 269 in c1a2f5c
cat << PIHOLE_CONF >> /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 271 in c1a2f5c
REV_SERVER_CIDR=$(ip route | grep -v "default via" | grep "$IFACE" | awk '{print $1}' | grep "/") |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 278 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "DNS_FQDN_REQUIRED" /etc/pihole/setupVars.conf && ! grep -q "DNS_BOGUS_PRIV" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 278 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "DNS_FQDN_REQUIRED" /etc/pihole/setupVars.conf && ! grep -q "DNS_BOGUS_PRIV" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 278 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "DNS_FQDN_REQUIRED" /etc/pihole/setupVars.conf && ! grep -q "DNS_BOGUS_PRIV" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 278 in c1a2f5c
if [ -f /etc/pihole/setupVars.conf ] && ! grep -q "DNS_FQDN_REQUIRED" /etc/pihole/setupVars.conf && ! grep -q "DNS_BOGUS_PRIV" /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 280 in c1a2f5c
cat << PIHOLE_CONF >> /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 287 in c1a2f5c
print_text_in_color "$ICyan" "Restarting pihole..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 288 in c1a2f5c
sleep 5 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 291 in c1a2f5c
if ! pihole restartdns |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 291 in c1a2f5c
if ! pihole restartdns |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 293 in c1a2f5c
msg_box "Something got wrong during the Pi-hole restart. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 295 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 299 in c1a2f5c
check_command sudo sed -i '/^server.port/s/80/8093/' /etc/lighttpd/lighttpd.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 302 in c1a2f5c
print_text_in_color "$ICyan" "Restarting lighttpd..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 303 in c1a2f5c
sleep 5 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 306 in c1a2f5c
if ! systemctl restart lighttpd |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 306 in c1a2f5c
if ! systemctl restart lighttpd |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 308 in c1a2f5c
msg_box "Couldn't restart lighttpd. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 310 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 314 in c1a2f5c
print_text_in_color "$ICyan" "Configuring Apache..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 315 in c1a2f5c
install_if_not apache2 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 316 in c1a2f5c
a2enmod headers |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 317 in c1a2f5c
a2enmod rewrite |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 318 in c1a2f5c
a2enmod ssl |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 319 in c1a2f5c
a2enmod proxy |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 320 in c1a2f5c
a2enmod proxy_http |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 323 in c1a2f5c
if version 22.04 "$DISTRO" 24.04.10 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 323 in c1a2f5c
if version 22.04 "$DISTRO" 24.04.10 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 325 in c1a2f5c
TLS13="+TLSv1.3" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 328 in c1a2f5c
cat << PIHOLE_CONF > "$SITES_AVAILABLE/pihole.conf" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 369 in c1a2f5c
check_command a2ensite pihole.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 372 in c1a2f5c
if ! restart_webserver |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 372 in c1a2f5c
if ! restart_webserver |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 374 in c1a2f5c
msg_box "Apache2 could not restart... |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 376 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 380 in c1a2f5c
PASSWORD=$(gen_passwd 12 "a-zA-Z0-9") |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 380 in c1a2f5c
PASSWORD=$(gen_passwd 12 "a-zA-Z0-9") |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 383 in c1a2f5c
check_command pihole -a -p "$PASSWORD" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 386 in c1a2f5c
IPV6_ADDRESS=$(grep "IPV6_ADDRESS=" /etc/pihole/setupVars.conf) |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 386 in c1a2f5c
IPV6_ADDRESS=$(grep "IPV6_ADDRESS=" /etc/pihole/setupVars.conf) |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 387 in c1a2f5c
IPV6_ADDRESS="${IPV6_ADDRESS##*IPV6_ADDRESS=}" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 390 in c1a2f5c
crontab -u root -l | grep -v "pihole-update.sh" | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 391 in c1a2f5c
crontab -u root -l | { cat; echo "30 19 * * 6 $SCRIPTS/pihole-update.sh >/dev/null" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 391 in c1a2f5c
crontab -u root -l | { cat; echo "30 19 * * 6 $SCRIPTS/pihole-update.sh >/dev/null" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 391 in c1a2f5c
crontab -u root -l | { cat; echo "30 19 * * 6 $SCRIPTS/pihole-update.sh >/dev/null" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 394 in c1a2f5c
ufw allow 53/tcp comment 'Pi-hole TCP' &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 395 in c1a2f5c
ufw allow 53/udp comment 'Pi-hole UDP' &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 396 in c1a2f5c
ufw allow 8094/tcp comment 'Pi-hole Web' &>/dev/null |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 399 in c1a2f5c
msg_box "Congratulations, your Pi-hole was set up correctly! |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 406 in c1a2f5c
msg_box "You can now configure your devices to use the Pi-hole as their DNS server using: |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 411 in c1a2f5c
msg_box "How to use Pi-hole on the command line: |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 420 in c1a2f5c
msg_box "Concerning updates: |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 427 in c1a2f5c
if ! yesno_box_yes "Do you want to enables your Pi-hole to be a recursive DNS server? |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 427 in c1a2f5c
if ! yesno_box_yes "Do you want to enables your Pi-hole to be a recursive DNS server? |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 430 in c1a2f5c
exit |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 434 in c1a2f5c
install_if_not unbound |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 436 in c1a2f5c
cat << UNBOUND_CONF > /etc/unbound/unbound.conf.d/pi-hole.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 464 in c1a2f5c
print_text_in_color "$ICyan" "Restarting unbound..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 465 in c1a2f5c
sleep 10 & spinner_loading |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 465 in c1a2f5c
sleep 10 & spinner_loading |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 468 in c1a2f5c
check_command service unbound restart |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 471 in c1a2f5c
if ! dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335 | grep -q "SERVFAIL" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 471 in c1a2f5c
if ! dig sigfail.verteiltesysteme.net @127.0.0.1 -p 5335 | grep -q "SERVFAIL" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 473 in c1a2f5c
msg_box "Something got wrong while testing SERVFAIL. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 475 in c1a2f5c
elif ! dig sigok.verteiltesysteme.net @127.0.0.1 -p 5335 | grep -q "NOERROR" |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 477 in c1a2f5c
msg_box "Something got wrong while testing NOERROR. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 482 in c1a2f5c
sed -i 's|^PIHOLE_DNS_1=.*|PIHOLE_DNS_1=127.0.0.1#5335|' /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 483 in c1a2f5c
sed -i '/^PIHOLE_DNS_2=.*/d' /etc/pihole/setupVars.conf |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 486 in c1a2f5c
print_text_in_color "$ICyan" "Restarting pihole..." |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 487 in c1a2f5c
sleep 5 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 490 in c1a2f5c
if ! pihole restartdns |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 490 in c1a2f5c
if ! pihole restartdns |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 492 in c1a2f5c
msg_box "Something got wrong during the Pi-hole unbound restart. |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 494 in c1a2f5c
exit 1 |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 498 in c1a2f5c
crontab -u root -l | grep -v "systemctl restart unbound" | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 499 in c1a2f5c
crontab -u root -l | { cat; echo "@hourly systemctl restart unbound" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 499 in c1a2f5c
crontab -u root -l | { cat; echo "@hourly systemctl restart unbound" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 499 in c1a2f5c
crontab -u root -l | { cat; echo "@hourly systemctl restart unbound" ; } | crontab -u root - |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 502 in c1a2f5c
msg_box "Congratulations! |
📝 [shellcheck] reported by reviewdog 🐶
Command appears to be unreachable. Check usage (or ignore if invoked indirectly). SC2317
Line 505 in c1a2f5c
exit |
Signed-off-by: Simon L. <[email protected]>
c1a2f5c
to
f3890f3
Compare