Merge pull request #1724 from pi-hole/fix/removejs
Remove superseded index.js: #1696 #1416
This commit is contained in:
commit
3cd8b7d882
|
@ -1304,6 +1304,12 @@ installPiholeWeb() {
|
||||||
install -d /var/www/html/pihole
|
install -d /var/www/html/pihole
|
||||||
# and the blockpage
|
# and the blockpage
|
||||||
install -D ${PI_HOLE_LOCAL_REPO}/advanced/{index,blockingpage}.* /var/www/html/pihole/
|
install -D ${PI_HOLE_LOCAL_REPO}/advanced/{index,blockingpage}.* /var/www/html/pihole/
|
||||||
|
|
||||||
|
# Remove superseded file
|
||||||
|
if [[ -e "/var/www/html/pihole/index.js" ]]; then
|
||||||
|
rm "/var/www/html/pihole/index.js"
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "${OVER} ${TICK} ${str}"
|
echo -e "${OVER} ${TICK} ${str}"
|
||||||
|
|
||||||
local str="Backing up index.lighttpd.html"
|
local str="Backing up index.lighttpd.html"
|
||||||
|
|
Loading…
Reference in New Issue