removing redundant sudo

This commit is contained in:
mcguirepr89
2022-05-21 14:00:38 -04:00
parent 14b2b8fe13
commit 2ec000be4e
+1 -1
View File
@@ -80,7 +80,7 @@ if ($language != "none"){
$home = shell_exec("awk -F: '/1000/{print $6}' /etc/passwd");
$home = trim($home);
$command = "sudo -u".$user." mv ".$home."/BirdNET-Pi/model/labels.txt ".$home."/BirdNET-Pi/model/labels.txt.old && sudo -u".$user." unzip ".$home."/BirdNET-Pi/model/labels_l18n.zip ".$language." -d ".$home."/BirdNET-Pi/model && sudo -u".$user." mv ".$home."/BirdNET-Pi/model/".$language." ".$home."/BirdNET-Pi/model/labels.txt";
$command_output = `sudo $command`;
$command_output = `$command`;
`sudo restart_services.sh`;
}
}