Check for existing directory before trying to perform operations on it.

This commit is contained in:
Nate 2016-03-27 01:57:52 -05:00 committed by nate
parent 5442954db6
commit 2b5cee05e6

View file

@ -488,7 +488,7 @@ installConfigs() {
versionCheckDNSmasq versionCheckDNSmasq
if [ ! -d "/etc/lighttpd" ]; then if [ ! -d "/etc/lighttpd" ]; then
$SUDO mkdir /etc/lighttpd $SUDO mkdir /etc/lighttpd
$SUDO chown "$USER":root /etc/lighttpds $SUDO chown "$USER":root /etc/lighttpd
fi fi
$SUDO mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig $SUDO mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
$SUDO cp /etc/.pihole/advanced/lighttpd.conf /etc/lighttpd/lighttpd.conf $SUDO cp /etc/.pihole/advanced/lighttpd.conf /etc/lighttpd/lighttpd.conf