From 6ef521e8251b432cc4f87b06413624aead49cd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Thu, 24 May 2018 17:35:43 +0200 Subject: [PATCH] [Web] Add git head info --- data/web/debug.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/data/web/debug.php b/data/web/debug.php index 35511898..e061e1c6 100644 --- a/data/web/debug.php +++ b/data/web/debug.php @@ -4,6 +4,7 @@ require_once "inc/prerequisites.inc.php"; if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admin") { require_once "inc/header.inc.php"; $_SESSION['return_to'] = $_SERVER['REQUEST_URI']; +$git_last = array_pop(file('/git_head')); ?>
@@ -42,6 +43,21 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI']; $vmail_df = explode(',', json_decode(docker('dovecot-mailcow', 'post', 'exec', $exec_fields), true)); ?>
+
+
+

Version information

+
+
+
+
+

Git head

+
+
+ +
+
+
+

Disk usage