Skip to content

Instantly share code, notes, and snippets.

@josecelano
Created March 4, 2016 09:39
Show Gist options
  • Save josecelano/3d86206c289d88e34811 to your computer and use it in GitHub Desktop.
Save josecelano/3d86206c289d88e34811 to your computer and use it in GitHub Desktop.
#!/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