Commit 29ddb238 authored by MikeyMJCO's avatar MikeyMJCO

Make bin/set-perms less environment specific.

parent 3fd0d8bd
File mode changed from 100644 to 100755
#!/bin/bash #!/bin/bash
find web/static var -exec setfacl -m u:www-data:rwx {} \; if id "www-data" >/dev/null 2>&1; then
find web/static var -exec setfacl -m u:mjco:rwx {} \; find web/static var -exec setfacl -m u:www-data:rwx {} \;
#find web/static var -exec setfacl -x u:co {} \; fi
if id "$USER" >/dev/null 2>&1; then
find web/static var -exec setfacl -m u:$USER:rwx {} \;
fi
if id "co" >/dev/null 2>&1; then
find web/static var -exec setfacl -x u:co {} \;
fi
if id "www-data" >/dev/null 2>&1; then
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:www-data:rwx {} \;
find web/static var -type d -exec setfacl -m d:u:mjco:rwx {} \; fi
#find web/static var -type d -exec setfacl -x d:u:co {} \; if id "$USER" >/dev/null 2>&1; then
find web/static var -type d -exec setfacl -m d:u:$USER:rwx {} \;
fi
if id "co" >/dev/null 2>&1; then
find web/static var -type d -exec setfacl -x d:u:co {} \;
fi
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment