mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-17 12:59:04 +00:00
Merge pull request #956 from trinapicot/development
Add check for lighty.conf before trying to move it
This commit is contained in:
commit
486db1e797
1 changed files with 1 additions and 0 deletions
|
@ -708,6 +708,7 @@ installConfigs() {
|
||||||
if [ ! -d "/etc/lighttpd" ]; then
|
if [ ! -d "/etc/lighttpd" ]; then
|
||||||
mkdir /etc/lighttpd
|
mkdir /etc/lighttpd
|
||||||
chown "${USER}":root /etc/lighttpd
|
chown "${USER}":root /etc/lighttpd
|
||||||
|
elif [ -f "/etc/lighttpd/lighttpd.conf" ]; then
|
||||||
mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
|
mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
|
||||||
fi
|
fi
|
||||||
cp /etc/.pihole/advanced/${LIGHTTPD_CFG} /etc/lighttpd/lighttpd.conf
|
cp /etc/.pihole/advanced/${LIGHTTPD_CFG} /etc/lighttpd/lighttpd.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue