Skip to content

Commit

Permalink
fix: help for bench install without sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
gavindsouza committed Apr 11, 2020
1 parent 7e7c396 commit 2d43612
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench/cli.py
Expand Up @@ -69,10 +69,12 @@ def check_uid():

def cmd_requires_root():
if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers', 'supervisor', 'lets-encrypt', 'fonts',
'print', 'firewall', 'ssh-port', 'role', 'fail2ban', 'wildcard-ssl', 'install'):
'print', 'firewall', 'ssh-port', 'role', 'fail2ban', 'wildcard-ssl'):
return True
if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production'):
return True
if len(sys.argv) > 2 and sys.argv[1] in ('install'):
return True


def change_dir():
Expand Down

0 comments on commit 2d43612

Please sign in to comment.