From a9ad8d67aa0c08ba658aa1bbb14bd20768a9dab6 Mon Sep 17 00:00:00 2001 From: WaLLy3K Date: Wed, 4 Oct 2017 01:13:02 +1100 Subject: [PATCH] Remove superseded index.js Signed off by WaLLy3K --- automated install/basic-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index b0c0383c..6eca6868 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1304,6 +1304,12 @@ installPiholeWeb() { install -d /var/www/html/pihole # and the blockpage 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}" local str="Backing up index.lighttpd.html"