From 6fc3bfbdcf7fed0f92b46345f4075215885d7ad7 Mon Sep 17 00:00:00 2001 From: Chinmay Pai Date: Sat, 13 Oct 2018 17:20:04 +0000 Subject: [PATCH] dbench: fix init issues (#55) ./dbench init would lead to 'missing argument: PATH' issue (#54), and could not find Procfile_docker and site-config. Signed-off-by: Chinmay Pai --- dbench | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbench b/dbench index 76da4e19..446064fb 100755 --- a/dbench +++ b/dbench @@ -4,7 +4,7 @@ if [[ $# -eq 0 ]]; then docker exec -it frappe bash elif [ "$1" == 'init' ]; then docker exec -itu root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*" - docker exec -i frappe bash -c "cd .. && bench init $2 --ignore-exist --skip-redis-config-generation" + docker exec -i frappe bash -c "cd .. && bench init frappe-bench --ignore-exist --skip-redis-config-generation && cd frappe-bench" docker exec -i frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json && bench set-mariadb-host mariadb" elif [ "$1" == 'setup' ]; then if [ "$2" == 'docker' ]; then @@ -49,4 +49,4 @@ elif [ "$1" == '-h' ]; then else IFS=" " docker exec -it frappe bash -c "bench $*" -fi \ No newline at end of file +fi