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:
parent
37fa462db5
commit
5d5d6c2c70
@ -680,7 +680,7 @@ installPihole() {
|
|||||||
setUser
|
setUser
|
||||||
$SUDO mkdir -p /etc/pihole/
|
$SUDO mkdir -p /etc/pihole/
|
||||||
if [ ! -d "/var/www/html" ]; then
|
if [ ! -d "/var/www/html" ]; then
|
||||||
$SUDO mkdir /var/www/html
|
$SUDO mkdir -p /var/www/html
|
||||||
fi
|
fi
|
||||||
$SUDO chown www-data:www-data /var/www/html
|
$SUDO chown www-data:www-data /var/www/html
|
||||||
$SUDO chmod 775 /var/www/html
|
$SUDO chmod 775 /var/www/html
|
||||||
|
Loading…
Reference in New Issue
Block a user