Browse Source

Updated Permissions for deployment

set owner for laravel storage folder

Change-Id: Ic57111092aef9b806074e1740124fc6231af0659
Sebastian Marcet 2 months ago
parent
commit
7b6fd76dd1
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      files/functions

+ 3
- 0
files/functions View File

@@ -70,6 +70,8 @@ function site_init {
70 70
     if [[ ! -d $SITE_ROOT/storage/logs ]]; then
71 71
         mkdir -p $SITE_ROOT/storage/logs;
72 72
     fi
73
+    # set permissions
74
+    chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
73 75
     chmod 02770 $SITE_ROOT/storage
74 76
     find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
75 77
     find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;
@@ -200,6 +202,7 @@ function site_update {
200 202
         mkdir -p $SITE_ROOT/storage/logs;
201 203
     fi
202 204
     # set permissions
205
+    chown -R $FILE_OWNER:$FILE_GROUP $SITE_ROOT/storage
203 206
     chmod 02770 $SITE_ROOT/storage;
204 207
     find $SITE_ROOT/storage/ -type d -exec chmod 0775 {} \;
205 208
     find $SITE_ROOT/storage/ -type f -exec chmod 0664 {} \;

Loading…
Cancel
Save