From 2ec000be4eac31070c30ebd105437a60b7da6592 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Sat, 21 May 2022 14:00:38 -0400 Subject: [PATCH] removing redundant `sudo` --- scripts/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.php b/scripts/config.php index 4fecbba..78f0055 100644 --- a/scripts/config.php +++ b/scripts/config.php @@ -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`; } }