From 7b6fd76dd1672ec1ac64f01352b1f0df41eed3a5 Mon Sep 17 00:00:00 2001 From: Sebastian Marcet Date: Tue, 12 Feb 2019 12:09:33 -0300 Subject: [PATCH] Updated Permissions for deployment set owner for laravel storage folder Change-Id: Ic57111092aef9b806074e1740124fc6231af0659 --- files/functions | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/functions b/files/functions index 356ea1a..cb78c91 100644 --- a/files/functions +++ b/files/functions @@ -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 {} \;