From 7bfe241e57ca584e174f73f5e49f2a0ff5a9026f Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Thu, 2 Jun 2022 06:40:42 -0400 Subject: [PATCH] removed all sudo git instances --- homepage/views.php | 22 +++++++++------------- scripts/system_controls.php | 7 ++----- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/homepage/views.php b/homepage/views.php index 7a2d34b..4273667 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -1,25 +1,21 @@ &1"); - // some kind of error if(strlen($fetch) > 0) { - $fetch = shell_exec("sudo git -C ".$home."/BirdNET-Pi fetch 2>&1"); - $_SESSION['behind'] = trim(shell_exec("sudo git -C ".$home."/BirdNET-Pi status | sed -n '2 p' | cut -d ' ' -f 7")); - } else { $_SESSION['behind'] = trim(shell_exec("sudo -u".$user." git -C ".$home."/BirdNET-Pi status | sed -n '2 p' | cut -d ' ' -f 7")); } -} -if(intval($_SESSION['behind']) >= 99) {?> - -= 99) {?> + +