Skip to content

Commit bc81a47

Browse files
author
Benjamin Calef
committed
Merge branch 'develop'
2 parents e07543f + 13eaaa0 commit bc81a47

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Those provisions will be executed on pre-defined sequences:
146146
### Permission
147147
Magento file system owner is configured for ``vagrant`` user, it means all commands in magento project must be executed by this user.<br>
148148
By default command line ``vagrant ssh`` will log you as vagrant user.<br>
149-
* To re-apply magento permission you can run ``permission`` in command line: this is only applicable for ``app`` path or ``default`` mount configurations.
149+
* To re-apply magento permissions you can run ``permission`` directly in command line.
150150

151151
### Command line
152152
* magento (Magento CLI for your project)

provision/100-magento-pre.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ ln -sfn /etc/nginx/sites-available/010-"$PROJECT_NAME" /etc/nginx/sites-enabled/
4444

4545
# Permission script
4646
cat <<-EOF > /home/vagrant/permission.bak
47-
if [ "$PROJECT_MOUNT" != "nfs" ] || [ "$PROJECT_MOUNT_PATH" == "app" ]; then
4847
echo 'Applying permissions to $PROJECT_PATH'
4948
cd "$PROJECT_PATH" \\
5049
&& sudo find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \; \\
5150
&& sudo find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \; \\
5251
&& sudo find ./var ./generated -type d -exec chmod 777 {} \; \\
5352
&& sudo chmod u+x bin/magento \\
5453
&& sudo chown -fR :www-data . || :
55-
fi
5654
EOF
5755
grep '[^[:blank:]]' < /home/vagrant/permission.bak > /usr/local/bin/permission
5856
rm -rf /home/vagrant/permission.bak

0 commit comments

Comments
 (0)