Check for existing directory before trying to perform operations on it.
This commit is contained in:
parent
5442954db6
commit
2b5cee05e6
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue