mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
v5 fix #115
This commit is contained in:
parent
d79d1af2c5
commit
d819bba123
@ -3,10 +3,5 @@
|
|||||||
"url":"https://github.com/frappe/erpnext",
|
"url":"https://github.com/frappe/erpnext",
|
||||||
"name":"erpnext",
|
"name":"erpnext",
|
||||||
"branch": "master"
|
"branch": "master"
|
||||||
},
|
|
||||||
{
|
|
||||||
"url":"https://github.com/frappe/shopping-cart",
|
|
||||||
"name":"shopping_cart",
|
|
||||||
"branch": "master"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -375,12 +375,7 @@ setup_bench() {
|
|||||||
echo Setting up first site
|
echo Setting up first site
|
||||||
echo /home/$FRAPPE_USER/frappe-bench > /etc/frappe_bench_dir
|
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"
|
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"
|
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 bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup sudoers $FRAPPE_USER"
|
run_cmd bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup sudoers $FRAPPE_USER"
|
||||||
if $SETUP_PROD; then
|
if $SETUP_PROD; then
|
||||||
run_cmd bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup production $FRAPPE_USER"
|
run_cmd bash -c "cd /home/$FRAPPE_USER/frappe-bench && bench setup production $FRAPPE_USER"
|
||||||
|
Loading…
Reference in New Issue
Block a user