Permit passing of TTRSS_SELF_URL to override auto-generation

This commit is contained in:
David Young 2017-07-21 23:35:05 +12:00
parent c4d0bffcd8
commit 749862d676

View File

@ -104,9 +104,12 @@ setup_ttrss()
fi fi
fi fi
# 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. # Construct the final URL TTRSS will use.
TTRSS_SELF_URL=${TTRSS_PROTO}://${TTRSS_URL}${TTRSS_PORT}/ TTRSS_SELF_URL=${TTRSS_PROTO}://${TTRSS_URL}${TTRSS_PORT}/
fi
echo "Setup: URL is: $TTRSS_SELF_URL" echo "Setup: URL is: $TTRSS_SELF_URL"
# Patch URL path. # Patch URL path.