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:
parent
a09cc4424a
commit
608aad0d25
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user