# replace base url if [ "${CRAWLAB_BASE_URL}" = "" ]; then : else indexpath=/app/dist/index.html sed -i "s?/js/?${CRAWLAB_BASE_URL}/js/?g" ${indexpath} sed -i "s?/css/?${CRAWLAB_BASE_URL}/css/?g" ${indexpath} sed -i "s/ > /var/log/weed.log 2>&1 &