diff --git a/root/srv/setup-ttrss.sh b/root/srv/setup-ttrss.sh index e5b03bc..0b931d9 100755 --- a/root/srv/setup-ttrss.sh +++ b/root/srv/setup-ttrss.sh @@ -104,9 +104,12 @@ setup_ttrss() fi fi - # Construct the final URL TTRSS will use. - TTRSS_SELF_URL=${TTRSS_PROTO}://${TTRSS_URL}${TTRSS_PORT}/ - + # If we've been passed $TTRSS_SELF_URL as an env variable, then use that, + # But if not, use the URL we constructed above + if [ -z "$TTRSS_SELF_URL ]; then + # Construct the final URL TTRSS will use. + TTRSS_SELF_URL=${TTRSS_PROTO}://${TTRSS_URL}${TTRSS_PORT}/ + fi echo "Setup: URL is: $TTRSS_SELF_URL" # Patch URL path.