Skip to content

Commit

Permalink
Creation of mkdir with correct permissions when user=apache (#134)
Browse files Browse the repository at this point in the history
* Creation of mkdir with correct permissions when user=apache

* set umask of the user launching the MRI pipeline to allow directory write permissions by the group
  • Loading branch information
MounaSafiHarab authored and driusan committed Jun 21, 2016
1 parent f215059 commit 15f9083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions environment
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ export TMPDIR=/tmp
export LORIS_CONFIG=/data/%PROJECT%/bin/mri/dicom-archive

source %MINC_TOOLKIT_DIR%/minc-toolkit-config.sh
umask 0002

3 changes: 3 additions & 0 deletions imaging_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ else
read -p "Cannot find the apache group name for your installation. Please provide? " group
fi

# Making lorisadmin part of the apache group
sudo usermod -a -G $group $USER

#Setting group permissions to apache and group ID for all files/dirs under /data/$PROJ/data
sudo chgrp $group -R /data/$PROJ/data/
sudo chmod -R g+s /data/$PROJ/data/
Expand Down

0 comments on commit 15f9083

Please sign in to comment.