Updated Permissions for deployment
set owner for laravel storage folder Change-Id: Ic57111092aef9b806074e1740124fc6231af0659
This commit is contained in:
parent
e95f2ed56e
commit
7b6fd76dd1
|
@ -70,6 +70,8 @@ function site_init {
|
||||||
if [[ ! -d $SITE_ROOT/storage/logs ]]; then
|
if [[ ! -d $SITE_ROOT/storage/logs ]]; then
|
||||||
mkdir -p $SITE_ROOT/storage/logs;
|
mkdir -p $SITE_ROOT/storage/logs;
|
||||||
fi
|
fi
|
||||||
|
# set permissions
|
||||||
|
chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
|
||||||
chmod 02770 $SITE_ROOT/storage
|
chmod 02770 $SITE_ROOT/storage
|
||||||
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
|
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
|
||||||
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
|
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
|
||||||
|
@ -200,6 +202,7 @@ function site_update {
|
||||||
mkdir -p $SITE_ROOT/storage/logs;
|
mkdir -p $SITE_ROOT/storage/logs;
|
||||||
fi
|
fi
|
||||||
# set permissions
|
# set permissions
|
||||||
|
chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
|
||||||
chmod 02770 $SITE_ROOT/storage;
|
chmod 02770 $SITE_ROOT/storage;
|
||||||
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
|
find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
|
||||||
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
|
find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
|
||||||
|
|
Loading…
Reference in New Issue