set-perms 363 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash

find web/static var -exec setfacl -m u:www-data:rwx {} \;
find web/static var -exec setfacl -m u:docs:rwx {} \;
find web/static var -exec setfacl -x u:co {} \;

find web/static var -type d -exec setfacl -m d:u:www-data:rwx {} \;
find web/static var -type d -exec setfacl -m d:u:docs:rwx {} \;
find web/static var -type d -exec setfacl -x d:u:co {} \;