From 8fd0fb46124bc3d4d352dad588c0ca0a85541ce6 Mon Sep 17 00:00:00 2001 From: x86dev Date: Thu, 5 Oct 2017 12:42:09 +0200 Subject: [PATCH] setup-ttrss.sh: Better defaults for self URL. --- root/srv/setup-ttrss.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/root/srv/setup-ttrss.sh b/root/srv/setup-ttrss.sh index c01c6e9..d462332 100755 --- a/root/srv/setup-ttrss.sh +++ b/root/srv/setup-ttrss.sh @@ -77,9 +77,9 @@ setup_ttrss() TTRSS_URL=localhost fi - # Tweak TTRSS_PORT, if defined. - if [ -n "$TTRSS_PORT" ]; then - TTRSS_PORT=:${TTRSS_PORT} + # Check if TTRSS_PORT is undefined, and if so, use 8888 as default. + if [ -z ${TTRSS_PORT} ]; then + TTRSS_PORT=8888 fi if [ "$TTRSS_WITH_SELFSIGNED_CERT" = "1" ]; then @@ -93,7 +93,7 @@ setup_ttrss() TTRSS_PROTO=http fi - # Add a leading colon (for the final URL) if a custom port is set. + # Add a leading colon (for the final URL) to the port. if [ -n "$TTRSS_PORT" ]; then TTRSS_PORT=:${TTRSS_PORT} fi