CT Pihole: Update install methode for PiHoleV6

This commit is contained in:
2025-05-10 00:35:53 +02:00
parent c65282871f
commit 31629ec39f
7 changed files with 52 additions and 27 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/sh
mkdir -p /etc/pihole
mv /opt/Setup/Configs/setupVars.conf /etc/pihole/setupVars.conf
mv /opt/Setup/Configs/lighthttpd-redirect.conf /etc/lighttpd/conf-available/14-root-redirect.conf
ln -s ../conf-available/14-root-redirect.conf /etc/lighttpd/conf-enabled/14-root-redirect.conf
mv /opt/Setup/Configs/pihole.toml /etc/pihole/pihole.toml
echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
ln -s /etc/systemd/system/pihole-FTL.service /etc/systemd/system/multi-user.target.wants/pihole-FTL.service
curl -sSL https://install.pi-hole.net | bash /dev/stdin --unattended || true
curl -sSL https://install.pi-hole.net | bash /dev/stdin --unattended || true
rm -rf /opt/Setup/Configs