From adce59fe49780134a61a9edfe031eb971fdb6d86 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sun, 16 Apr 2023 15:00:24 -0400 Subject: [PATCH] remove world-writable perms --- scripts/update_birdnet_snippets.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/update_birdnet_snippets.sh b/scripts/update_birdnet_snippets.sh index 0ace380..b4fb2a6 100755 --- a/scripts/update_birdnet_snippets.sh +++ b/scripts/update_birdnet_snippets.sh @@ -15,6 +15,10 @@ chmod 666 ~/BirdNET-Pi/scripts/*.txt chmod 666 ~/BirdNET-Pi/*.txt find $HOME/BirdNET-Pi -path "$HOME/BirdNET-Pi/birdnet" -prune -o -type f ! -perm /o=w -exec chmod a+w {} \; +# remove world-writable perms +chmod -R o-w ~/BirdNET-Pi/templates/* + + # Create blank sitename as it's optional. First time install will use $HOSTNAME. if ! grep SITE_NAME /etc/birdnet/birdnet.conf &>/dev/null;then sudo -u$USER echo "SITE_NAME=\"\"" >> /etc/birdnet/birdnet.conf