Update update_services.sh

This commit is contained in:
Patrick McGuire
2021-11-04 13:53:00 -04:00
committed by GitHub
parent 641b332143
commit 7136fc5416
-3
View File
@@ -248,11 +248,8 @@ EOF
}
update_etc_hosts() {
BIRDNETPI_URL=https://birdnetpi.pmcgui.xyz
BIRDNETPI_URL="$(echo ${BIRDNETPI_URL} | sed 's/\/\//\\\/\\\//g')"
EXTRACTIONLOG_URL=https://extractionlog.pmcgui.xyz
EXTRACTIONLOG_URL="$(echo ${EXTRACTIONLOG_URL} | sed 's/\/\//\\\/\\\//g')"
BIRDNETLOG_URL=https://birdnetlog.pmcgui.xyz
BIRDNETLOG_URL="$(echo ${BIRDNETLOG_URL} | sed 's/\/\//\\\/\\\//g')"
sed -ie s/'birdnetpi.local$'/"birdnetpi.local ${BIRDNETPI_URL} ${EXTRACTIONLOG_URL} ${BIRDNETLOG_URL}"/g /etc/hosts
}