1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00
This commit is contained in:
Adam Warner 2017-05-05 22:24:40 +01:00
parent f270f7430c
commit 5cd2c77d98
No known key found for this signature in database
GPG Key ID: 7C062498C7FA6E49

View File

@ -874,44 +874,11 @@ installPiholeWeb() {
echo ":::"
echo -n "::: Installing index.php..."
if [ -d "/var/www/html/pihole" ]; then
if [ -f "/var/www/html/pihole/index.php" ]; then
if [[ ${CUSTOMBLOCKPAGE} == true ]]; then
echo " Existing index.php detected, not overwriting"
else
if [[ ${CUSTOMBLOCKPAGE} == false ]]; then
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.php /var/www/html/pihole/
echo " done!"
fi
else
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.php /var/www/html/pihole/
echo " done!"
fi
echo -n "::: Installing index.js..."
if [ -f "/var/www/html/pihole/index.js" ]; then
if [[ ${CUSTOMBLOCKPAGE} == true ]]; then
echo " Existing index.js detected, not overwriting"
else
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.js /var/www/html/pihole/
echo " done!"
fi
else
cp ${PI_HOLE_LOCAL_REPO}/advanced/index.js /var/www/html/pihole/
echo " done!"
fi
echo -n "::: Installing blockingpage.css..."
if [ -f "/var/www/html/pihole/blockingpage.css" ]; then
if [[ ${CUSTOMBLOCKPAGE} == true ]]; then
echo " Existing blockingpage.css detected, not overwriting"
else
cp ${PI_HOLE_LOCAL_REPO}/advanced/blockingpage.css /var/www/html/pihole
echo " done!"
fi
else
cp ${PI_HOLE_LOCAL_REPO}/advanced/blockingpage.css /var/www/html/pihole
echo " done!"
fi
else
echo "::: Creating directory for blocking page"
install -d /var/www/html/pihole