2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[fix] certbot-auto and bench in frappe sudoers

This commit is contained in:
Anand Doshi 2016-05-23 15:26:47 +05:30
parent a09cc4424a
commit 608aad0d25
2 changed files with 3 additions and 0 deletions

View File

@ -14,5 +14,7 @@
{% if nginx %}
{{ user }} ALL = (root) NOPASSWD: {{ nginx }}
{% endif %}
{{ user }} ALL = (root) NOPASSWD: /opt/certbot-auto
{{ user }} ALL = (root) NOPASSWD: {{ bench }}
Defaults:{{ user }} !requiretty

View File

@ -216,6 +216,7 @@ def setup_sudoers(user):
'systemctl': find_executable('systemctl'),
'supervisorctl': find_executable('supervisorctl'),
'nginx': find_executable('nginx'),
'bench': find_executable('bench')
})
with open(sudoers_file, 'w') as f: