mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
further simplify
This commit is contained in:
parent
5cd2c77d98
commit
41dd163453
1 changed files with 4 additions and 5 deletions
|
@ -872,12 +872,11 @@ installPiholeWeb() {
|
||||||
fi
|
fi
|
||||||
# Install the web interface
|
# Install the web interface
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo -n "::: Installing index.php..."
|
|
||||||
if [ -d "/var/www/html/pihole" ]; then
|
if [ -d "/var/www/html/pihole" ]; then
|
||||||
if [[ ${CUSTOMBLOCKPAGE} == false ]]; then
|
if [[ ${CUSTOMBLOCKPAGE} == false ]]; then
|
||||||
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.php /var/www/html/pihole/
|
echo -n "::: Installing block page..."
|
||||||
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.js /var/www/html/pihole/
|
install -D ${PI_HOLE_LOCAL_REPO}/advanced/{index,blockingpage}.* /var/www/html/pihole/
|
||||||
cp ${PI_HOLE_LOCAL_REPO}/advanced/blockingpage.css /var/www/html/pihole
|
echo " done!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "::: Creating directory for blocking page"
|
echo "::: Creating directory for blocking page"
|
||||||
|
|
Loading…
Reference in a new issue