From 870454330d96ddae71f62fb2c44ee735aec20999 Mon Sep 17 00:00:00 2001 From: trinapicot Date: Fri, 2 Dec 2016 13:54:11 -0700 Subject: [PATCH] Add check for lighty.conf before trying to move it --- automated install/basic-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index d79f05b2..33444873 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -708,6 +708,7 @@ installConfigs() { if [ ! -d "/etc/lighttpd" ]; then mkdir /etc/lighttpd chown "${USER}":root /etc/lighttpd + elif [ -f "/etc/lighttpd/lighttpd.conf" ]; then mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig fi cp /etc/.pihole/advanced/${LIGHTTPD_CFG} /etc/lighttpd/lighttpd.conf