fixed somethings in init should work now

This commit is contained in:
chabad360 2018-08-02 17:24:19 -07:00
parent ee3c4147a4
commit e6af580863

13
dbench
View file

@ -16,10 +16,9 @@ erp=0
mgr=0
site=0
bench=0
initf=0
function usage {
echo "Usage: dbench "
echo "Usage: dbench [ --setup [-d] | --init [-med] [sitename] | "
echo ''
echo 'where:'
echo ' -h show this help text'
@ -103,7 +102,7 @@ if [ $setup == 1 ]; then
fi
if [ $init == 1 ]; then
if ! $site; then
if [ "$site" == 0 ] || [ "$site" == "" ]; then
site="site1.local"
fi
@ -128,6 +127,14 @@ if [ $init == 1 ]; then
exit 0
fi
if [ $d == 1 ]; then
if [ "$site" == 0 ]; then
site="site1.local"
fi
docker exec -it -u root frappe bash -c "bench --site $site set-config \"developer_mode\" 1 && bench clear-cache"
exit 0
fi
if [ $start == 1 ]; then
docker-compose start
./dbench -a