1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-18 06:08:21 +00:00

handle case where parent directories do not exist

This commit is contained in:
nate 2016-04-02 19:31:26 -05:00
parent 37fa462db5
commit 5d5d6c2c70

View File

@ -680,7 +680,7 @@ installPihole() {
setUser
$SUDO mkdir -p /etc/pihole/
if [ ! -d "/var/www/html" ]; then
$SUDO mkdir /var/www/html
$SUDO mkdir -p /var/www/html
fi
$SUDO chown www-data:www-data /var/www/html
$SUDO chmod 775 /var/www/html