From 6fada3f135d7d848cfc9d1c4c930ee3fa0a4f975 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Wed, 16 Feb 2022 09:41:27 -0500 Subject: [PATCH] testing updater --- scripts/system_controls.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/system_controls.php b/scripts/system_controls.php index 2034dc0..39d2f5f 100644 --- a/scripts/system_controls.php +++ b/scripts/system_controls.php @@ -78,11 +78,26 @@ a {
Executing $command"; - shell_exec("$command"); +$command = $_POST['submit']; +if($command == 'update_birdnet.sh'){ + $str= "

Updating . . .

+

Please wait 60 seconds

"; + echo str_pad($str, 4096); + ob_flush(); + flush(); } +if(isset($command)){ +$results = shell_exec("$command 2>&1"); +echo "
$results
"; +} +} +ob_end_flush(); ?>
+