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/