mirror of
https://github.com/frappe/bench.git
synced 2025-02-11 07:08:30 +00:00
fix: separate out scripts
This commit is contained in:
parent
d5003e1944
commit
b6dd496e35
@ -39,9 +39,6 @@
|
|||||||
|
|
||||||
- name: setup bench and dev environment
|
- name: setup bench and dev environment
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
become: '{{ use_sudo }}'
|
|
||||||
become_user: '{{ frappe_user }}'
|
|
||||||
become_method: sudo
|
|
||||||
vars:
|
vars:
|
||||||
bench_repo_path: "/home/{{ frappe_user }}/.bench"
|
bench_repo_path: "/home/{{ frappe_user }}/.bench"
|
||||||
bench_path: "/home/{{ frappe_user }}/{{ bench_name }}"
|
bench_path: "/home/{{ frappe_user }}/{{ bench_name }}"
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
|
|
||||||
# Install base requirements.
|
|
||||||
apt-get install -y curl git wget vim python-dev gcc
|
|
||||||
|
|
||||||
# Install ERPNext
|
# Install ERPNext
|
||||||
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
|
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
|
python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
|
@ -70,9 +70,12 @@
|
|||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
||||||
"script": "scripts/debian_family/setup.sh"
|
"script": "scripts/debian_family/setup.sh"
|
||||||
}, {
|
},{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"execute_command": "echo 'frappe' | {{.Vars}} sudo -S -E bash '{{.Path}}'",
|
"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"
|
"script": "scripts/debian_family/install_erpnext_develop.sh"
|
||||||
}, {
|
}, {
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user