Update system_controls.php

This commit is contained in:
ehpersonal38
2022-05-29 11:09:21 -04:00
parent c3c1e9d942
commit a2715ddc14
+7 -1
View File
@@ -1,4 +1,10 @@
<html>
<?php
session_start();
$user = shell_exec("awk -F: '/1000/{print $1}' /etc/passwd");
$home = shell_exec("awk -F: '/1000/{print $6}' /etc/passwd");
$home = trim($home);
$_SESSION['behind'] = trim(shell_exec("sudo git -C ".$home."/BirdNET-Pi fetch > /dev/null 2>&1 && git -C ".$home."/BirdNET-Pi status | sed -n '2 p' | cut -d ' ' -f 7"));
?><html>
<meta name="viewport" content="width=device-width, initial-scale=1">
<br>
<br>