mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-02 22:18:29 +01:00
Enhance: Read prepare dir in Env fisrt
If HARBOR_BUNDLE_DIR is exist, then get dir value from this. Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
f85870511d
commit
71104011b3
@ -3,7 +3,11 @@ set +e
|
|||||||
|
|
||||||
# If compling source code this dir is harbor's make dir
|
# If compling source code this dir is harbor's make dir
|
||||||
# If install harbor via pacakge, this dir is harbor's root dir
|
# If install harbor via pacakge, this dir is harbor's root dir
|
||||||
harbor_prepare_path="$( cd "$(dirname "$0")" ; pwd -P )"
|
if [[ -n "$HARBOR_BUNDLE_DIR" ]]; then
|
||||||
|
harbor_prepare_path=$HARBOR_BUNDLE_DIR
|
||||||
|
else
|
||||||
|
harbor_prepare_path="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
fi
|
||||||
echo "prepare base dir is set to ${harbor_prepare_path}"
|
echo "prepare base dir is set to ${harbor_prepare_path}"
|
||||||
data_path=$(grep '^[^#]*data_volume:' ${harbor_prepare_path}/harbor.yml | awk '{print $NF}')
|
data_path=$(grep '^[^#]*data_volume:' ${harbor_prepare_path}/harbor.yml | awk '{print $NF}')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user