Skip to content

Commit

Permalink
fix: remove supervisord under service and systemctl in sudoers
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Mar 13, 2020
1 parent a032528 commit 39f8223
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bench/config/templates/frappe_sudoers
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{% if service %}
{{ user }} ALL = (root) {{ service }}
{{ user }} ALL = (root) NOPASSWD: {{ service }} nginx *
{{ user }} ALL = (root) NOPASSWD: {{ service }} supervisord *
{% endif %}

{% if systemctl %}
{{ user }} ALL = (root) {{ systemctl }}
{{ user }} ALL = (root) NOPASSWD: {{ systemctl }} * nginx
{{ user }} ALL = (root) NOPASSWD: {{ systemctl }} * supervisord
{% endif %}

{% if nginx %}
{{ user }} ALL = (root) NOPASSWD: {{ nginx }}
{% endif %}

{{ user }} ALL = (root) NOPASSWD: /opt/certbot-auto
Defaults:{{ user }} !requiretty

0 comments on commit 39f8223

Please sign in to comment.