Merge branch 'BirdNET-pi-main' into New-UI-API

Install langauge code was moved into a different file, updated changeLanguage() in common.php by removing sudo from 3K model language install.
This commit is contained in:
jaredb7
2023-05-09 07:30:33 +10:00
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1005,7 +1005,7 @@ function changeLanguage($model, $language)
if ($model == "BirdNET_GLOBAL_3K_V2.3_Model_FP16") {
// Install new language label file
$result = syslog_shell_exec("sudo chmod +x $scripts_dir/install_language_label_nm.sh && $scripts_dir/install_language_label_nm.sh -l $language", $user);
$result = syslog_shell_exec("chmod +x $scripts_dir/install_language_label_nm.sh && $scripts_dir/install_language_label_nm.sh -l $language", $user);
} else {
$result = syslog_shell_exec("$scripts_dir/install_language_label.sh -l $language", $user);
}