2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-08 00:04:38 +00:00
This commit is contained in:
Pratik Vyas 2015-05-20 09:59:18 +05:30
parent d79d1af2c5
commit d819bba123
2 changed files with 1 additions and 11 deletions

View File

@ -3,10 +3,5 @@
"url":"https://github.com/frappe/erpnext",
"name":"erpnext",
"branch": "master"
},
{
"url":"https://github.com/frappe/shopping-cart",
"name":"shopping_cart",
"branch": "master"
}
]

View File

@ -375,12 +375,7 @@ setup_bench() {
echo Setting up first site
echo /home/$FRAPPE_USER/frappe-bench > /etc/frappe_bench_dir
run_cmd sudo su $FRAPPE_USER -c "cd /home/$FRAPPE_USER/frappe-bench && bench new-site site1.local --mariadb-root-password $MSQ_PASS --admin-password $ADMIN_PASS"
if [ "$FRAPPE_BRANCH" == "develop" ]; then
run_cmd sudo su $FRAPPE_USER -c "cd /home/$FRAPPE_USER/frappe-bench && bench install-app erpnext"
else
run_cmd sudo su $FRAPPE_USER -c "cd /home/$FRAPPE_USER/frappe-bench && bench frappe --install_app erpnext"
run_cmd sudo su $FRAPPE_USER -c "cd /home/$FRAPPE_USER/frappe-bench && bench frappe --install_app shopping_cart"
fi
run_cmd sudo su $FRAPPE_USER -c "cd /home/$FRAPPE_USER/frappe-bench && bench install-app erpnext"
run_cmd bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup sudoers $FRAPPE_USER"
if $SETUP_PROD; then
run_cmd bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup production $FRAPPE_USER"