Skip to content

Instantly share code, notes, and snippets.

@josecelano
Created March 4, 2016 09:39
Show Gist options
  • Select an option

  • Save josecelano/3d86206c289d88e34811 to your computer and use it in GitHub Desktop.

Select an option

Save josecelano/3d86206c289d88e34811 to your computer and use it in GitHub Desktop.

Revisions

  1. josecelano created this gist Mar 4, 2016.
    10 changes: 10 additions & 0 deletions setup-orchestra-testbench.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/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