install flickr_labels
This commit is contained in:
@@ -44,6 +44,6 @@ cd $my_dir/scripts || exit 1
|
||||
CURRENT_TIMEZONE=$(timedatectl show --value --property=Timezone)
|
||||
[ -f /etc/timezone ] && echo "$CURRENT_TIMEZONE" | sudo tee /etc/timezone > /dev/null
|
||||
|
||||
./install_language_label_nm.sh -l $DATABASE_LANG || exit 1
|
||||
./install_language_label.sh || exit 1
|
||||
|
||||
exit 0
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
source /etc/birdnet/birdnet.conf
|
||||
if [ "$MODEL" == "BirdNET_GLOBAL_6K_V2.4_Model_FP16" ]; then
|
||||
BASEDIR=/home/$BIRDNET_USER/BirdNET-Pi/model/labels_nm
|
||||
BASEDIR=labels_nm
|
||||
else
|
||||
BASEDIR=/home/$BIRDNET_USER/BirdNET-Pi/model/labels_l18n
|
||||
BASEDIR=labels_l18n
|
||||
fi
|
||||
|
||||
label_file_name="labels_${DATABASE_LANG}.txt"
|
||||
|
||||
@@ -82,6 +82,7 @@ create_necessary_dirs() {
|
||||
sudo -u ${USER} ln -fs $my_dir/templates/phpsysinfo.ini ${HOME}/phpsysinfo/
|
||||
sudo -u ${USER} ln -fs $my_dir/templates/green_bootstrap.css ${HOME}/phpsysinfo/templates/
|
||||
sudo -u ${USER} ln -fs $my_dir/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/html
|
||||
sudo -u ${USER} ln -sf $my_dir/model/labels_nm/labels_en.txt $my_dir/model/labels_flickr.txt
|
||||
chmod -R g+rw $my_dir
|
||||
chmod -R g+rw ${RECS_DIR}
|
||||
}
|
||||
|
||||
@@ -208,6 +208,13 @@ AUTH=$(grep basicauth /etc/caddy/Caddyfile)
|
||||
[ -n "${CADDY_PWD}" ] && [ -z "${AUTH}" ] && sudo /usr/local/bin/update_caddyfile.sh > /dev/null 2>&1
|
||||
set -x
|
||||
|
||||
if ! [ -L $HOME/BirdNET-Pi/model/labels_flickr.txt ]; then
|
||||
sudo_with_user ln -sf labels_nm/labels_en.txt $HOME/BirdNET-Pi/model/labels_flickr.txt
|
||||
fi
|
||||
if ! [ -L $HOME/BirdNET-Pi/model/labels.txt ]; then
|
||||
sudo_with_user install_language_label.sh
|
||||
fi
|
||||
|
||||
# update snippets above
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
Reference in New Issue
Block a user