From c23b6587f307d09aa054a3c79b65dc0b87d18d9e Mon Sep 17 00:00:00 2001
From: ArmandBahi <armand.bahi@veremes.com>
Date: Wed, 17 Oct 2018 10:47:11 +0200
Subject: [PATCH] Rights on write folders

---
 utils/init_symlinks.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/init_symlinks.sh b/utils/init_symlinks.sh
index 02c23451..c98ed30e 100755
--- a/utils/init_symlinks.sh
+++ b/utils/init_symlinks.sh
@@ -94,6 +94,7 @@ if [[ $depsCount > 0 ]]; then
 			if [ -d "${APP_EXISTING_PATH}/$folder_path" ]; then
 				echo "copy $folder_path"
 				cp -Rf "${APP_EXISTING_PATH}/$folder_path" "$(pwd)/$folder_path"
+				chmod 777 -R "$(pwd)/$folder_path"
 			fi
 		done
 
@@ -124,7 +125,5 @@ if [[ $depsCount > 0 ]]; then
 				fi
 			fi
 		done
-
-		chmod 777 -R vas/server/
 	fi
 fi
-- 
GitLab