From 5d5d6c2c705419590f6179326f2c7a1ca074b1b6 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 2 Apr 2016 19:31:26 -0500 Subject: [PATCH] handle case where parent directories do not exist --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index ec5fc90e..7d0db3cb 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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