2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 04:29:02 +00:00

[fix] sudoer permissions

This commit is contained in:
Saurabh 2017-09-18 18:44:00 +05:30
parent e005e618f4
commit 56b01b7b65
2 changed files with 5 additions and 3 deletions

View File

@ -48,10 +48,10 @@ def check_uid():
def cmd_requires_root():
if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers', 'lets-encrypt', 'fonts',
'print', 'firewall', 'ssh-port', 'prerequisites', 'role', 'mariadb', 'wkhtmltopdf',
'nodejs', 'psutil', 'nginx', 'fail2ban'):
'print', 'firewall', 'ssh-port', 'role'):
return True
if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production'):
if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production',
'install'):
return True
def change_dir():

View File

@ -12,6 +12,7 @@
mode: 'o+rx'
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian'
- name: Set home folder perms
@ -20,6 +21,7 @@
mode: 'o+rx'
owner: '{{ frappe_user }}'
group: '{{ frappe_user }}'
recurse: yes
when: ansible_distribution == 'MacOSX'
- name: Set /tmp/.bench folder perms