diff --git a/bench/cli.py b/bench/cli.py index f9c80fba..3d14cffe 100755 --- a/bench/cli.py +++ b/bench/cli.py @@ -48,10 +48,10 @@ def check_uid(): def cmd_requires_root(): if len(sys.argv) > 2 and sys.argv[2] in ('production', 'sudoers', 'lets-encrypt', 'fonts', - 'print', 'firewall', 'ssh-port', 'prerequisites', 'role', 'mariadb', 'wkhtmltopdf', - 'nodejs', 'psutil', 'nginx', 'fail2ban'): + 'print', 'firewall', 'ssh-port', 'role'): return True - if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production'): + if len(sys.argv) >= 2 and sys.argv[1] in ('patch', 'renew-lets-encrypt', 'disable-production', + 'install'): return True def change_dir(): diff --git a/playbooks/develop/create_user.yml b/playbooks/develop/create_user.yml index e7caf573..2980ed4e 100755 --- a/playbooks/develop/create_user.yml +++ b/playbooks/develop/create_user.yml @@ -12,6 +12,7 @@ mode: 'o+rx' owner: '{{ frappe_user }}' group: '{{ frappe_user }}' + recurse: yes when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'CentOS' or ansible_distribution == 'Debian' - name: Set home folder perms @@ -20,6 +21,7 @@ mode: 'o+rx' owner: '{{ frappe_user }}' group: '{{ frappe_user }}' + recurse: yes when: ansible_distribution == 'MacOSX' - name: Set /tmp/.bench folder perms