From 39aff8627b008f88f7fc7e30b86d51f301239aba Mon Sep 17 00:00:00 2001 From: everyx Date: Tue, 24 Nov 2020 19:23:54 +0800 Subject: [PATCH] fix: install app failed when APP_NAME is not same as the one contained in APP_REPO --- build/common/worker/install_app.sh | 2 +- build/erpnext-nginx/install_app.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/common/worker/install_app.sh b/build/common/worker/install_app.sh index c378be17..ceb8d3bd 100755 --- a/build/common/worker/install_app.sh +++ b/build/common/worker/install_app.sh @@ -12,5 +12,5 @@ cd ./apps [ "${APP_BRANCH}" ] && BRANCH="-b ${APP_BRANCH}" -git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH} +git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH} ${APP_NAME} pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/${APP_NAME} \ No newline at end of file diff --git a/build/erpnext-nginx/install_app.sh b/build/erpnext-nginx/install_app.sh index 2ce1c447..7af233d2 100755 --- a/build/erpnext-nginx/install_app.sh +++ b/build/erpnext-nginx/install_app.sh @@ -15,7 +15,7 @@ install_packages git python2 mkdir -p apps cd apps git clone --depth 1 https://github.com/frappe/frappe ${BRANCH} -git clone --depth 1 ${APP_REPO} ${BRANCH} +git clone --depth 1 ${APP_REPO} ${BRANCH} ${APP_NAME} cd /home/frappe/frappe-bench/apps/frappe yarn