CT Pihole: fixed config & added redirect to admin page

This commit is contained in:
2024-08-14 15:04:19 +02:00
parent 3bb8585fe9
commit 0853bd4bc9
3 changed files with 5 additions and 1 deletions

View File

@@ -0,0 +1 @@
url.redirect = ("^/$" => "/admin" )

View File

@@ -1,6 +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
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