Updated Permissions for deployment

set owner for laravel storage folder

Change-Id: Ic57111092aef9b806074e1740124fc6231af0659
This commit is contained in:
Sebastian Marcet 2019-02-12 12:09:33 -03:00
parent e95f2ed56e
commit 7b6fd76dd1
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,8 @@ function site_init {
if [[ ! -d $SITE_ROOT/storage/logs ]]; then
mkdir -p $SITE_ROOT/storage/logs;
fi
# set permissions
chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
chmod 02770 $SITE_ROOT/storage
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
@ -200,6 +202,7 @@ function site_update {
mkdir -p $SITE_ROOT/storage/logs;
fi
# set permissions
chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
chmod 02770 $SITE_ROOT/storage;
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;