more sophisticated birdnet-pi-config

-- adjusted per notes from @CaiusX
This commit is contained in:
Patrick McGuire
2021-11-03 13:53:17 -04:00
parent 338ee05585
commit 9e9d234431
2 changed files with 285 additions and 267 deletions
+1 -2
View File
@@ -21,7 +21,7 @@ fi
if ! [ -z ${db_pwd} ];then
sed -i s/'^DB_PWD=.*'/"DB_PWD=${db_pwd}"/g ${birdnet_conf}
sudo -upi ${birdnetpi_dir}/scripts/update_db_pwd.sh
${birdnetpi_dir}/scripts/update_db_pwd.sh
fi
if ! [ -z ${db_root_pwd} ];then
@@ -33,7 +33,6 @@ if ! [ -z ${birdnetpi_url} ];then
sed -i s/'^BIRDNETPI_URL=.*'/"BIRDNETPI_URL=${birdnetpi_url/\/\//\\\/\\\/}"/g ${birdnet_conf}
sed -i s/'^EXTRACTIONLOG_URL=.*'/"EXTRACTIONLOG_URL=${extractionlog_url/\/\//\\\/\\\/}"/g ${birdnet_conf}
sed -i s/'^BIRDNETLOG_URL=.*'/"BIRDNETLOG_URL=${birdnetlog_url/\/\//\\\/\\\/}"/g ${birdnet_conf}
sudo -upi ${birdnetpi_dir}/scripts/update_birdnet.sh
fi
if ! [ -z ${new_sensitivity} ];then