#!/bin/bash # NOTE: deprecated # 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 &