From a3aa0195c9f10d538fcb521c2306cbdcdc171e78 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Mar 2021 20:53:20 +0300 Subject: [PATCH] Revert "add workaround for slow podman internal dns resolver" This reverts commit c50ed4ca5b7b9e1c855bb569ccfaea3eb29ca494. --- app/startup.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/app/startup.sh b/app/startup.sh index 360e101..0d6a64d 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -19,18 +19,6 @@ SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git [ -e $DST_DIR ] && rm -f $DST_DIR/.app_is_ready -export PGPASSWORD=$TTRSS_DB_PASS - -# podman internal dns is hilariously slow -if [ ! -z "${TTRSS_DB_SLOW_DNS_HACK}" ]; then - DBIPADDR=$(ping -c 1 db | grep from | cut -d " " -f 4 | tr -d :) - - if [ ! -z "$DBIPADDR" ]; then - echo overriding DB host with IP address: $DBIPADDR - export TTRSS_DB_HOST=$DBIPADDR - fi -fi - [ ! -e /var/www/html/index.php ] && cp ${SCRIPT_ROOT}/index.php /var/www/html PSQL="mysql -q -h $TTRSS_DB_HOST -u $TTRSS_DB_USER -p$TTRSS_DB_PASS $TTRSS_DB_NAME"