Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon L <szaimen@e.mail.de>2022-08-20 15:24:36 +0300
committerGitHub <noreply@github.com>2022-08-20 15:24:36 +0300
commit8890a0bec8c17923a68f5dcb7f4eeb733a02649a (patch)
tree83829929bf49ea2c98470d7ee58386c691f7d33d
parent1d287c39c1a403bdaaffda67c181bf64ffa04f7b (diff)
hide /etc/hostname and /etc/hosts mounts (#388)
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: szaimen <szaimen@e.mail.de>
-rw-r--r--lib/OperatingSystems/DefaultOs.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/OperatingSystems/DefaultOs.php b/lib/OperatingSystems/DefaultOs.php
index 4d26dc3..1672dd7 100644
--- a/lib/OperatingSystems/DefaultOs.php
+++ b/lib/OperatingSystems/DefaultOs.php
@@ -199,6 +199,8 @@ class DefaultOs implements IOperatingSystem {
foreach ($matches['Filesystem'] as $i => $filesystem) {
if (in_array($matches['Type'][$i], ['tmpfs', 'devtmpfs', 'squashfs', 'overlay'], false)) {
continue;
+ } elseif (in_array($matches['Mounted'][$i], ['/etc/hostname', '/etc/hosts'], false)) {
+ continue;
}
$disk = new Disk();