simpler update

This commit is contained in:
mcguirepr89
2022-03-07 18:18:30 -05:00
parent bb9fad48be
commit 5905f87697
-7
View File
@@ -169,13 +169,6 @@ if(isset($_POST['view'])){
}
} elseif(isset($_POST['submit'])) {
$command = $_POST['submit'];
if($command == 'update_birdnet.sh'){
$str= "<h3>Updating . . . </h3>
<p>Please wait 60 seconds</p>";
echo str_pad($str, 4096);
ob_flush();
flush();
}
if(isset($command)){
$results = shell_exec("$command 2>&1");
echo "<pre>$results</pre>";