mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: remove supervisord under service and systemctl in sudoers
This commit is contained in:
parent
a03252881a
commit
39f8223d6d
@ -1,15 +1,16 @@
|
|||||||
{% if service %}
|
{% if service %}
|
||||||
{{ user }} ALL = (root) {{ service }}
|
{{ user }} ALL = (root) {{ service }}
|
||||||
{{ user }} ALL = (root) NOPASSWD: {{ service }} nginx *
|
{{ user }} ALL = (root) NOPASSWD: {{ service }} nginx *
|
||||||
{{ user }} ALL = (root) NOPASSWD: {{ service }} supervisord *
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if systemctl %}
|
{% if systemctl %}
|
||||||
{{ user }} ALL = (root) {{ systemctl }}
|
{{ user }} ALL = (root) {{ systemctl }}
|
||||||
{{ user }} ALL = (root) NOPASSWD: {{ systemctl }} * nginx
|
{{ user }} ALL = (root) NOPASSWD: {{ systemctl }} * nginx
|
||||||
{{ user }} ALL = (root) NOPASSWD: {{ systemctl }} * supervisord
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% 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: /opt/certbot-auto
|
||||||
Defaults:{{ user }} !requiretty
|
Defaults:{{ user }} !requiretty
|
||||||
|
Loading…
Reference in New Issue
Block a user