From 5075a03830525925ded19d82460259a2de5dfdb1 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Sun, 15 May 2022 09:25:43 -0400 Subject: [PATCH] Update update_birdnet.sh --- scripts/update_birdnet.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.sh index 0135963..a699670 100755 --- a/scripts/update_birdnet.sh +++ b/scripts/update_birdnet.sh @@ -6,6 +6,7 @@ USER=$(awk -F: '/1000/ {print $1}' /etc/passwd) HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd) my_dir=$HOME/BirdNET-Pi/scripts +sudo -u$USER git -C $my_dir rm privacy_server.py sudo -u${USER} git -C $my_dir stash sudo -u${USER} git -C $my_dir pull -f sudo systemctl daemon-reload @@ -14,4 +15,4 @@ sudo ln -sf $my_dir/* /usr/local/bin/ # The script below handles changes to the host system # Any additions to the updater should be placed in that file. -sudo $my_dir/update_birdnet_snippets.sh \ No newline at end of file +sudo $my_dir/update_birdnet_snippets.sh