mirror of
https://github.com/x86dev/docker-ttrss
synced 2025-12-15 19:06:06 +00:00
Permit passing of TTRSS_SELF_URL to override auto-generation
This commit is contained in:
@@ -104,9 +104,12 @@ setup_ttrss()
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Construct the final URL TTRSS will use.
|
# If we've been passed $TTRSS_SELF_URL as an env variable, then use that,
|
||||||
TTRSS_SELF_URL=${TTRSS_PROTO}://${TTRSS_URL}${TTRSS_PORT}/
|
# 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"
|
echo "Setup: URL is: $TTRSS_SELF_URL"
|
||||||
|
|
||||||
# Patch URL path.
|
# Patch URL path.
|
||||||
|
|||||||
Reference in New Issue
Block a user