CT Pihole: fixed config & added redirect to admin page
This commit is contained in:
1
CT-Files/pihole/Configs/lighthttpd-redirect.conf
Normal file
1
CT-Files/pihole/Configs/lighthttpd-redirect.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
url.redirect = ("^/$" => "/admin" )
|
||||||
@@ -4,4 +4,4 @@ INSTALL_WEB=true
|
|||||||
DNSMASQ_LISTENING=single
|
DNSMASQ_LISTENING=single
|
||||||
PIHOLE_DNS_1=192.168.2.1
|
PIHOLE_DNS_1=192.168.2.1
|
||||||
PIHOLE_DNS_2=192.168.2.1
|
PIHOLE_DNS_2=192.168.2.1
|
||||||
TEMPERATUREUNIT=C
|
TEMPERATUREUNIT=C
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir -p /etc/pihole
|
mkdir -p /etc/pihole
|
||||||
mv /opt/Setup/Configs/setupVars.conf /etc/pihole/setupVars.conf
|
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
|
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
|
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
|
||||||
Reference in New Issue
Block a user