Build goaccess from source

This commit is contained in:
quietsy
2022-01-14 20:15:14 +02:00
parent 7f4f9261a0
commit 98e966b8e9
3 changed files with 35 additions and 3 deletions
+1 -1
View File
@@ -174,7 +174,7 @@
}
$geodb = file_exists('/config/geoip2db/GeoLite2-City.mmdb') ? '--geoip-database=/config/geoip2db/GeoLite2-City.mmdb' : '';
$goaccess = shell_exec("goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
$goaccess = shell_exec("/usr/local/bin/goaccess -a -o html --config-file=/dashboard/goaccess.conf ".$geodb);
$status = GetHeader() . GetProxies() . GetF2B() . GetAnnouncements() . GetLinks() . '<div class="wrap-general">';
$page = str_replace("<div class='wrap-general'>", $status, $goaccess);
$page = str_replace("<title>Server&nbsp;Statistics", "<title>SWAG&nbsp;Dashboard", $page);