Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Install] Add -p to mkdir so install doesn't fail #5245

Merged
merged 1 commit into from
Sep 26, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down