mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
commit
d487824b31
@ -1,6 +1,8 @@
|
||||
---
|
||||
|
||||
- hosts: localhost
|
||||
become: yes
|
||||
become_user: root
|
||||
tasks:
|
||||
- name: Create user
|
||||
user:
|
||||
|
@ -33,7 +33,7 @@ def install_virtualbox():
|
||||
check_output(['bench', 'install', 'virtualbox'])
|
||||
|
||||
def install_packer():
|
||||
if not spawn.find_executable("packer") or not os.path.exists(os.path.join('/', 'opt', 'packer')):
|
||||
if not spawn.find_executable("packer") and not os.path.exists(os.path.join('/', 'opt', 'packer')):
|
||||
check_output(['bench', 'install', 'packer'])
|
||||
|
||||
def silent_remove(name, is_dir=False):
|
||||
|
@ -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
|
||||
python install.py --develop --user frappe --mysql-root-password frappe --admin-password admin
|
@ -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 --production --user frappe --mysql-root-password frappe --admin-password admin
|
||||
python install.py --production --user frappe --mysql-root-password frappe --admin-password admin
|
4
vm/scripts/debian_family/install_prerequisites.sh
Normal file
4
vm/scripts/debian_family/install_prerequisites.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash -eux
|
||||
|
||||
# Install base requirements.
|
||||
apt-get install -y curl git wget vim python-dev gcc
|
@ -38,7 +38,7 @@
|
||||
"iso_checksum_type": "md5",
|
||||
"ssh_username": "frappe",
|
||||
"ssh_password": "frappe",
|
||||
"ssh_port": 22,
|
||||
"ssh_port": 22,
|
||||
"ssh_wait_timeout": "10000s",
|
||||
"http_directory": "http",
|
||||
"guest_additions_mode": "disable",
|
||||
@ -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",
|
||||
|
@ -38,7 +38,7 @@
|
||||
"iso_checksum_type": "md5",
|
||||
"ssh_username": "frappe",
|
||||
"ssh_password": "frappe",
|
||||
"ssh_port": 22,
|
||||
"ssh_port": 22,
|
||||
"ssh_wait_timeout": "10000s",
|
||||
"http_directory": "http",
|
||||
"guest_additions_mode": "disable",
|
||||
@ -69,9 +69,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_production.sh"
|
||||
}, {
|
||||
"type": "shell",
|
||||
|
Loading…
Reference in New Issue
Block a user