A live bird collage card for your Home Assistant dashboard.
enable tmp.mount: Raspberry Pi OS and Debian don't have tmpfs mounted on /tmp. So during restore every uploaded chunk would still end up on the SD card before it is un-tar-ed
frederik57c0d5b208ce
diff --git a/scripts/install_helpers.sh b/scripts/install_helpers.shindex ea7445b4..daa6421f 100644--- a/scripts/install_helpers.sh+++ b/scripts/install_helpers.sh@@ -58,3 +58,15 @@ WantedBy=multi-user.targetEOFln -sf $HOME/BirdNET-Pi/templates/$TMP_MOUNT /usr/lib/systemd/system}++install_tmp_mount() {+ STATE=$(systemctl is-enabled tmp.mount 2>&1 | grep -E '(enabled|disabled)')+ ! [ -f /usr/share/systemd/tmp.mount ] && echo "Warning: no /usr/share/systemd/tmp.mount found"+ if [ -z $STATE ]; then+ cp -f /usr/share/systemd/tmp.mount /etc/systemd/system/tmp.mount+ systemctl daemon-reload+ systemctl enable tmp.mount+ else+ echo "tmp.mount is $STATE, skipping"+ fi+}diff --git a/scripts/install_services.sh b/scripts/install_services.shindex 3b3ec8f7..c623ce24 100755--- a/scripts/install_services.sh+++ b/scripts/install_services.sh@@ -402,6 +402,7 @@ install_services() {set_hostnameupdate_etc_hostsset_login+ install_tmp_mountinstall_dependsinstall_scriptsdiff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.shindex f27fcf30..a6fef3bf 100755--- a/scripts/update_birdnet_snippets.sh+++ b/scripts/update_birdnet_snippets.sh@@ -130,6 +130,7 @@ if ! which inotifywait &>/dev/null;thenapt-get -y install inotify-toolsfi+install_tmp_mountremove_unit_file birdnet_server.service /usr/local/bin/server.pyremove_unit_file extraction.service /usr/local/bin/extract_new_birdsounds.sh