Created
March 4, 2016 09:39
-
-
Save josecelano/3d86206c289d88e34811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -v | |
# Set directories permissions | |
# Set Apache user as group owner for directories which require write perms | |
# This script is running as jenkins user. Jenkins should belong to www-data group | |
find ./vendor/orchestra/testbench/fixture/storage -type d -exec chgrp -v www-data {} + | |
find ./vendor/orchestra/testbench/fixture/storage -type d -exec chmod ug+rw {} + | |
find ./vendor/orchestra/testbench/fixture/bootstrap/cache -type d -exec chgrp -v www-data {} + | |
find ./vendor/orchestra/testbench/fixture/bootstrap/cache -type d -exec chmod ug+rw {} + | |
chgrp -v www-data ./vendor/orchestra/testbench/fixture/bootstrap/cache/services.php | |
chmod ug+rw ./vendor/orchestra/testbench/fixture/bootstrap/cache/services.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment