mirror of
https://github.com/frappe/bench.git
synced 2025-01-25 07:58:24 +00:00
Set directory permissions recursively
This commit is contained in:
parent
a04f45b0d9
commit
c21554519f
@ -10,14 +10,24 @@
|
|||||||
file:
|
file:
|
||||||
path: '/home/{{ frappe_user }}'
|
path: '/home/{{ frappe_user }}'
|
||||||
mode: 'o+rx'
|
mode: 'o+rx'
|
||||||
|
owner: '{{ frappe_user }}'
|
||||||
|
group: '{{ frappe_user }}'
|
||||||
|
recurse: yes
|
||||||
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
||||||
|
|
||||||
- name: Set home folder perms
|
- name: Set home folder perms
|
||||||
file:
|
file:
|
||||||
path: '/Users/{{ frappe_user }}'
|
path: '/Users/{{ frappe_user }}'
|
||||||
mode: 'o+rx'
|
mode: 'o+rx'
|
||||||
|
owner: '{{ frappe_user }}'
|
||||||
|
group: '{{ frappe_user }}'
|
||||||
|
recurse: yes
|
||||||
when: ansible_distribution == 'MacOSX'
|
when: ansible_distribution == 'MacOSX'
|
||||||
|
|
||||||
- name: Set /tmp/.bench folder perms
|
- name: Set /tmp/.bench folder perms
|
||||||
command: 'chown -R {{ frappe_user }}:{{ frappe_user }} {{ repo_path }}'
|
file:
|
||||||
|
path: '{{ repo_path }}'
|
||||||
|
owner: '{{ frappe_user }}'
|
||||||
|
group: '{{ frappe_user }}'
|
||||||
|
recurse: yes
|
||||||
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
|
Loading…
x
Reference in New Issue
Block a user