#!/bin/bash # replace env 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/ >/var/log/weed.log 2>&1 &