From b2ee124b35f6788a6d5370cbf37f1865072333e7 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 3 Feb 2022 13:53:49 -0500 Subject: [PATCH] adding debugging --- scripts/update_services.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/update_services.sh b/scripts/update_services.sh index b232fab..0078483 100755 --- a/scripts/update_services.sh +++ b/scripts/update_services.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # This reinstalls the services -#set -x # Uncomment to enable debugging +set -x # Uncomment to enable debugging trap 'rm -f ${tmpfile}' EXIT trap 'exit 1' SIGINT SIGHUP USER=pi @@ -303,9 +303,6 @@ EOF } update_etc_hosts() { - #BIRDNETPI_URL="$(echo ${BIRDNETPI_URL} | sed 's/\/\//\\\/\\\//g')" - #WEBTERMINAL_URL="$(echo ${WEBTERMINAL_URL} | sed 's/\/\//\\\/\\\//g')" - #BIRDNETLOG_URL="$(echo ${BIRDNETLOG_URL} | sed 's/\/\//\\\/\\\//g')" sed -ie s/'$(hostname).local'/"$(hostname).local ${BIRDNETPI_URL//https:\/\/} ${WEBTERMINAL_URL//https:\/\/} ${BIRDNETLOG_URL//https:\/\/}"/g /etc/hosts }