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 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