Skip to content

A live bird collage card for your Home Assistant dashboard.

tweaking based on a new test

Patrick McGuire1c927b8aa207
diff --git a/Birders_Guide_Installer.sh b/Birders_Guide_Installer.sh
index c4a5080f..a32a8001 100755
--- a/Birders_Guide_Installer.sh
+++ b/Birders_Guide_Installer.sh
@@ -50,7 +50,8 @@ stage_2() {
cd ${my_dir} && git checkout ${branch}
fi
- if [ -f ${my_dir}/Birders_Guide_Installer_Configuration.txt ];then
+ source ${my_dir}/Birders_Guide_Installer_Configuration.txt
+ if [ -z ${LATITUDE} ] || [ -z ${LONGITUDE} ] || [ -z ${CADDY_PWD} ] || [ -z ${ICE_PWD} ] || [ -z ${DB_PWD} ] || [ -z ${DB_ROOT_PWD} ];then
echo
echo
echo "Follow the instructions to fill out the LATITUDE and LONGITUDE variables
diff --git a/scripts/birdnet-pi-config b/scripts/birdnet-pi-config
index f99660d8..db68e3a7 100755
--- a/scripts/birdnet-pi-config
+++ b/scripts/birdnet-pi-config
@@ -543,13 +543,13 @@ do_get_lat() {
}
do_update_os() {
- apt update && apt -y full-upgrade
- ASK_TO_REBOOT=1
+ apt update && apt -y full-upgrade && \
+ ASK_TO_REBOOT=1
}
do_install_birdnet() {
- sudo -E -upi ${birdnetpi_dir}/scripts/install_birdnet.sh
- ASK_TO_REBOOT=1
+ sudo -E -upi ${birdnetpi_dir}/Birders_Guide_Installer.sh && \
+ ASK_TO_REBOOT=1
}
insist_on_reboot() {