fixing labels.txt overwrite durring update

This commit is contained in:
mcguirepr89
2022-02-01 08:48:45 -05:00
parent 7d9550d134
commit 8fdcfc1fc6
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -50,6 +50,8 @@ remove_scripts() {
remove_services
remove_scripts
# Backup labels.txt
sudo -u${USER} cp -f ~/BirdNET-Pi/model/labels.txt{,.bak}
# Stage 2 does a git pull to fetch new things
sudo -u${USER} git -C ${HOME}/BirdNET-Pi checkout -f
sudo -u${USER} git -C ${HOME}/BirdNET-Pi pull -f