mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
Have install create directory
This commit is contained in:
parent
1421c31179
commit
52e0aa11af
1 changed files with 4 additions and 2 deletions
|
@ -815,15 +815,17 @@ installPiholeWeb() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
mkdir -p /var/www/html/pihole
|
echo "::: Creating directory for blocking page"
|
||||||
|
install -d /var/www/html/pihole
|
||||||
|
install -D /etc/.pihole/advanced/{index,blockingpage}.* /var/www/html/pihole/
|
||||||
if [ -f /var/www/html/index.lighttpd.html ]; then
|
if [ -f /var/www/html/index.lighttpd.html ]; then
|
||||||
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig
|
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.orig
|
||||||
else
|
else
|
||||||
printf "\n:::\tNo default index.lighttpd.html file found... not backing up"
|
printf "\n:::\tNo default index.lighttpd.html file found... not backing up"
|
||||||
fi
|
fi
|
||||||
install /etc/.pihole/advanced/{index,blockingpage}.* /var/www/html/pihole/.
|
|
||||||
echo " done!"
|
echo " done!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Sudoer file
|
# Install Sudoer file
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo -n "::: Installing sudoer file..."
|
echo -n "::: Installing sudoer file..."
|
||||||
|
|
Loading…
Reference in a new issue