mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
simplify
This commit is contained in:
parent
f270f7430c
commit
5cd2c77d98
1 changed files with 1 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue