mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Check for existing directory before trying to perform operations on it.
This commit is contained in:
parent
5442954db6
commit
2b5cee05e6
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ installConfigs() {
|
|||
versionCheckDNSmasq
|
||||
if [ ! -d "/etc/lighttpd" ]; then
|
||||
$SUDO mkdir /etc/lighttpd
|
||||
$SUDO chown "$USER":root /etc/lighttpds
|
||||
$SUDO chown "$USER":root /etc/lighttpd
|
||||
fi
|
||||
$SUDO mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
|
||||
$SUDO cp /etc/.pihole/advanced/lighttpd.conf /etc/lighttpd/lighttpd.conf
|
||||
|
|
Loading…
Reference in a new issue