From de2c7acb7a30bf0c1e340da361c6b65ba33e3bbc Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Mon, 16 May 2022 21:38:42 +0800 Subject: [PATCH] updated docker init --- bin/docker-start-master.sh | 41 +++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/bin/docker-start-master.sh b/bin/docker-start-master.sh index 0d353a6b..32b33cd4 100755 --- a/bin/docker-start-master.sh +++ b/bin/docker-start-master.sh @@ -1,28 +1,23 @@ -# replace base url -if [ "${CRAWLAB_BASE_URL}" = "" ]; -then +# replace env +indexpath=/app/dist/index.html +if test -z "$CRAWLAB_BASE_URL"; then : else - indexpath=/app/dist/index.html - if test -z "$CRAWLAB_BASE_URL"; then - : - else - sed -i "s?/js/?${CRAWLAB_BASE_URL}/js/?g" ${indexpath} - sed -i "s?/css/?${CRAWLAB_BASE_URL}/css/?g" ${indexpath} - sed -i "s/