diff --git a/playbooks/site.yml b/playbooks/site.yml index 9ac8ca00..328cfcba 100644 --- a/playbooks/site.yml +++ b/playbooks/site.yml @@ -39,9 +39,6 @@ - name: setup bench and dev environment hosts: localhost - become: '{{ use_sudo }}' - become_user: '{{ frappe_user }}' - become_method: sudo vars: bench_repo_path: "/home/{{ frappe_user }}/.bench" bench_path: "/home/{{ frappe_user }}/{{ bench_name }}" diff --git a/vm/scripts/debian_family/install_erpnext_develop.sh b/vm/scripts/debian_family/install_erpnext_develop.sh index 4d3031af..9e9c7ab7 100644 --- a/vm/scripts/debian_family/install_erpnext_develop.sh +++ b/vm/scripts/debian_family/install_erpnext_develop.sh @@ -1,8 +1,5 @@ #!/bin/bash -eux -# Install base requirements. -apt-get install -y curl git wget vim python-dev gcc - # Install ERPNext wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py -sudo python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin \ No newline at end of file +python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin \ No newline at end of file diff --git a/vm/vm-develop.json b/vm/vm-develop.json index f7883d24..1a70c44a 100644 --- a/vm/vm-develop.json +++ b/vm/vm-develop.json @@ -70,9 +70,12 @@ "type": "shell", "execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'", "script": "scripts/debian_family/setup.sh" - }, { + },{ "type": "shell", "execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'", + "script": "scripts/debian_family/install_prerequisites.sh" + }, { + "type": "shell", "script": "scripts/debian_family/install_erpnext_develop.sh" }, { "type": "shell",