Merge pull request #956 from trinapicot/development

Add check for lighty.conf before trying to move it
pull/960/head
Adam Warner 8 years ago committed by GitHub
commit 486db1e797

@ -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

Loading…
Cancel
Save