From c86f2b723e6956a6544bf98dc5011bd303280c6e Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Fri, 25 Apr 2025 01:13:03 +0100 Subject: Restructure repository --- bin/status.php | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 bin/status.php (limited to 'bin/status.php') diff --git a/bin/status.php b/bin/status.php new file mode 100644 index 0000000..3789d9e --- /dev/null +++ b/bin/status.php @@ -0,0 +1,72 @@ + + + + + + Bongo status + + + + + +
+

Bongo status

+ Home + +
+ ' . $service->prettyName . ''; + $containers = []; + if (is_array($service->containerName)) { + $containers = $service->containerName; + } else { + $containers = [$service->containerName]; + } + ?> + luks !== null) : ?> + luks; + $mountpoint = exec('cat /proc/mounts | grep "/dev/mapper/' . $luksDevice->mountPoint . ' /mnt/' . $luksDevice->mountPoint . '"'); + if (empty($mountpoint)) { + Util\createBanner('✗', '/dev/mapper/' . $luksDevice->mountPoint . ' is not mounted at /mnt/' . $luksDevice->mountPoint, 'bad'); + } else { + Util\createBanner('✓', '/dev/mapper/' . $luksDevice->mountPoint . ' is mounted at /mnt/' . $luksDevice->mountPoint, 'good'); + } + ?> +

+ [Mount device or provide encryption key] +

+

+

+ Output + + + + +
+

+ + + + isNotFound === false) : ?> +

+ [Manage container] +

+

+

+ Status as reported by Docker + + +
+

+ + + +
+ -- cgit v1.2.3-70-g09d2