mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +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 %}
|
{% if nginx %}
|
||||||
{{ user }} ALL = (root) NOPASSWD: {{ nginx }}
|
{{ user }} ALL = (root) NOPASSWD: {{ nginx }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ user }} ALL = (root) NOPASSWD: /opt/certbot-auto
|
||||||
|
{{ user }} ALL = (root) NOPASSWD: {{ bench }}
|
||||||
Defaults:{{ user }} !requiretty
|
Defaults:{{ user }} !requiretty
|
||||||
|
|
||||||
|
@ -216,6 +216,7 @@ def setup_sudoers(user):
|
|||||||
'systemctl': find_executable('systemctl'),
|
'systemctl': find_executable('systemctl'),
|
||||||
'supervisorctl': find_executable('supervisorctl'),
|
'supervisorctl': find_executable('supervisorctl'),
|
||||||
'nginx': find_executable('nginx'),
|
'nginx': find_executable('nginx'),
|
||||||
|
'bench': find_executable('bench')
|
||||||
})
|
})
|
||||||
|
|
||||||
with open(sudoers_file, 'w') as f:
|
with open(sudoers_file, 'w') as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user