mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
handle case where parent directories do not exist
This commit is contained in:
parent
37fa462db5
commit
5d5d6c2c70
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue