From 165e6af129ba7dbb81cb70bf449567fe1976be59 Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Thu, 26 Apr 2018 18:18:21 +0200 Subject: [PATCH] Add code to detect Ubuntu 18.04 in installer. --- install/lib/install.lib.php | 4 ++++ server/lib/classes/monitor_tools.inc.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index fc68776863..06b10cbcbc 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -95,6 +95,10 @@ function get_distname() { $mainver = current($mainver).'.'.next($mainver); } switch ($mainver){ + case "18.04": + $relname = "(Bionic Beaver)"; + $distconfid = 'ubuntu1804'; + break; case "17.10": $relname = "(Artful Aardvark)"; $distconfid = 'ubuntu1710'; diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index 9f7580fee1..eec546088e 100644 --- a/server/lib/classes/monitor_tools.inc.php +++ b/server/lib/classes/monitor_tools.inc.php @@ -87,6 +87,10 @@ class monitor_tools { $mainver = $ver; } switch ($mainver){ + case "18.04": + $relname = "(Bionic Beaver)"; + $distconfid = 'ubuntu1804'; + break; case "17.10": $relname = "(Artful Aardvark)"; $distconfid = 'ubuntu1710'; -- GitLab