mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
even further simplify
This commit is contained in:
parent
615ca56ea3
commit
324d4433c3
@ -872,24 +872,20 @@ installPiholeWeb() {
|
|||||||
fi
|
fi
|
||||||
# Install the web interface
|
# Install the web interface
|
||||||
echo ":::"
|
echo ":::"
|
||||||
if [ -d "/var/www/html/pihole" ]; then
|
|
||||||
if [[ ${CUSTOMBLOCKPAGE} == false ]]; then
|
if [[ ${CUSTOMBLOCKPAGE} == false ]]; then
|
||||||
echo -n "::: Installing block page..."
|
echo -n "::: Installing block page..."
|
||||||
install -D ${PI_HOLE_LOCAL_REPO}/advanced/index.* /advanced/blockingpage.* /var/www/html/pihole/
|
|
||||||
echo " done!"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo "::: Creating directory for blocking page"
|
|
||||||
install -d /var/www/html/pihole
|
install -d /var/www/html/pihole
|
||||||
install -D ${PI_HOLE_LOCAL_REPO}/advanced/index.* /advanced/blockingpage.* /var/www/html/pihole/
|
install -D ${PI_HOLE_LOCAL_REPO}/advanced/index.* /advanced/blockingpage.* /var/www/html/pihole/
|
||||||
if [ -f /var/www/html/index.lighttpd.html ]; then
|
|
||||||
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig
|
|
||||||
else
|
|
||||||
printf "\n:::\tNo default index.lighttpd.html file found... not backing up"
|
|
||||||
fi
|
|
||||||
echo " done!"
|
echo " done!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /var/www/html/index.lighttpd.html ]; then
|
||||||
|
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig
|
||||||
|
else
|
||||||
|
printf "\n:::\tNo default index.lighttpd.html file found... not backing up"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Sudoer file
|
# Install Sudoer file
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo -n "::: Installing sudoer file..."
|
echo -n "::: Installing sudoer file..."
|
||||||
|
Loading…
Reference in New Issue
Block a user