Skip to content

Commit

Permalink
fix: run install script without sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Jun 14, 2019
1 parent e7f45e3 commit 982b727
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 1 addition & 4 deletions vm/scripts/debian_family/install_erpnext_production.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 --production --user frappe --mysql-root-password frappe --admin-password admin
python install.py --production --user frappe --mysql-root-password frappe --admin-password admin
5 changes: 4 additions & 1 deletion vm/vm-production.json
Expand Up @@ -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",
Expand Down

0 comments on commit 982b727

Please sign in to comment.