From 9633f9bf24e0f0aa9cd407d0d341f0f7ad20865d Mon Sep 17 00:00:00 2001 From: John Saigle Date: Tue, 24 Sep 2019 16:26:33 -0400 Subject: [PATCH] Add -p to mkdir so install doesn't fail --- tools/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/install.sh b/tools/install.sh index 287303f9ab4..86599c1a8b2 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -161,8 +161,8 @@ debian=("Debian" "Ubuntu") redhat=("Red" "CentOS" "Fedora" "Oracle") if [[ " ${debian[*]} " =~ " $os_distro " ]]; then - mkdir ../modules/document_repository/user_uploads - mkdir ../modules/data_release/user_uploads + mkdir -p ../modules/document_repository/user_uploads + mkdir -p ../modules/data_release/user_uploads sudo chown www-data.www-data ../modules/document_repository/user_uploads sudo chown www-data.www-data ../modules/data_release/user_uploads sudo chown www-data.www-data ../smarty/templates_c @@ -171,8 +171,8 @@ if [[ " ${debian[*]} " =~ " $os_distro " ]]; then sudo chgrp www-data ../project sudo chmod 770 ../project elif [[ " ${redhat[*]} " =~ " $os_distro " ]]; then - mkdir ../modules/document_repository/user_uploads - mkdir ../modules/data_release/user_uploads + mkdir -p ../modules/document_repository/user_uploads + mkdir -p ../modules/data_release/user_uploads sudo chown apache.apache ../modules/document_repository/user_uploads sudo chown apache.apache ../modules/data_release/user_uploads sudo chown apache.apache ../smarty/templates_c