Skip to content

Commit

Permalink
Permit passing of TTRSS_SELF_URL to override auto-generation
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin committed Jul 21, 2017
1 parent c4d0bff commit 749862d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions root/srv/setup-ttrss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 749862d

Please sign in to comment.