ansible-roles/d4s_user_services_perms/templates/set-acl-rules.sh.j2

14 lines
398 B
Django/Jinja

#!/bin/bash
set -e
set -o pipefail
{% for path in d4s_users_data_directories %}
find {{ path.name }} -type d -exec setfacl -m g:{{ d4science_common_group }}:rwx,o:rx,m:rwx {} \;
find {{ path.name }} -type d -exec setfacl -d -m g:{{ d4science_common_group }}:rwx,o:rx,m:rwx {} \;
find {{ path.name }} -type f -exec setfacl -m g:{{ d4science_common_group }}:rw,o:r,m:rw {} \;
{% endfor %}
exit 0