1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Save blocking page CSS to pihole directory instead of admin

This commit is contained in:
Mcat12 2016-12-30 14:42:15 -05:00
parent ab2c486f25
commit 5e35fdbc52
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ if($uri == "/")
<head> <head>
<meta charset='UTF-8'/> <meta charset='UTF-8'/>
<title>Website Blocked</title> <title>Website Blocked</title>
<link rel='stylesheet' href='http://pi.hole/admin/blockingpage.css'/> <link rel='stylesheet' href='http://pi.hole/pihole/blockingpage.css'/>
<link rel='shortcut icon' href='http://pi.hole/admin/img/favicon.png' type='image/png'/> <link rel='shortcut icon' href='http://pi.hole/admin/img/favicon.png' type='image/png'/>
<meta name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0, user-scalable=no'/> <meta name='viewport' content='width=device-width,initial-scale=1.0,maximum-scale=1.0, user-scalable=no'/>
<meta name='robots' content='noindex,nofollow'/> <meta name='robots' content='noindex,nofollow'/>

View File

@ -794,11 +794,11 @@ installPiholeWeb() {
echo " done!" echo " done!"
fi fi
if [ -f "/var/www/html/admin/blockingpage.css" ]; then if [ -f "/var/www/html/pihole/blockingpage.css" ]; then
echo "::: Existing blockingpage.css detected, not overwriting" echo "::: Existing blockingpage.css detected, not overwriting"
else else
echo -n "::: index.css missing, replacing... " echo -n "::: index.css missing, replacing... "
cp /etc/.pihole/advanced/blockingpage.css /var/www/html/admin cp /etc/.pihole/advanced/blockingpage.css /var/www/html/pihole
echo " done!" echo " done!"
fi fi