fixed dbench

This commit is contained in:
chabad360 2018-08-01 16:16:35 -07:00
parent 3546d01053
commit 8992678e7f

6
dbench
View file

@ -29,7 +29,7 @@ frappe_installer () {
if [[ $# -eq 0 ]]; then if [[ $# -eq 0 ]]; then
docker exec -it frappe bash docker exec -it frappe bash
elif [[ $1 == 'init' && $2 == 'e' ]] elif [[ $1 == 'init' && $2 == '-e' ]]
then then
frappe_installer frappe_installer
echo "installing erpnext" echo "installing erpnext"
@ -37,7 +37,7 @@ then
docker exec -it frappe bash -c "bench --site site1.local install-app erpnext" docker exec -it frappe bash -c "bench --site site1.local install-app erpnext"
echo "finished" echo "finished"
elif [[ $1 == 'init' && $2 == 'd' ]] elif [[ $1 == 'init' && $2 == '-d' ]]
then then
frappe_installer frappe_installer
docker exec -it frappe bash -c "cat frappe-bench/sites/site1/site_config.json" docker exec -it frappe bash -c "cat frappe-bench/sites/site1/site_config.json"
@ -67,10 +67,12 @@ else
;; ;;
\?) \?)
echo "Invalid option: -$OPTARG" >&2 echo "Invalid option: -$OPTARG" >&2
display_usage
exit 1 exit 1
;; ;;
:) :)
echo "Option -$OPTARG requires an argument." >&2 echo "Option -$OPTARG requires an argument." >&2
displpay_usage
exit 1 exit 1
;; ;;
esac esac