From d1f36aa884356c11548b3811a2580fae744641b5 Mon Sep 17 00:00:00 2001 From: Till Date: Tue, 8 Nov 2022 18:18:49 +0100 Subject: [PATCH] Add Ubuntu 22.04 version detection code. --- install/dist/conf/ubuntu2004.conf.php | 2 +- install/dist/conf/ubuntu2204.conf.php | 240 +++++++++++++++++++++++ install/lib/install.lib.php | 4 + server/lib/classes/monitor_tools.inc.php | 4 + 4 files changed, 249 insertions(+), 1 deletion(-) create mode 100644 install/dist/conf/ubuntu2204.conf.php diff --git a/install/dist/conf/ubuntu2004.conf.php b/install/dist/conf/ubuntu2004.conf.php index 2cde7e3200..a55c9a004b 100644 --- a/install/dist/conf/ubuntu2004.conf.php +++ b/install/dist/conf/ubuntu2004.conf.php @@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -//*** Ubuntu 18.04 default settings +//*** Ubuntu 20.04 default settings //* Main $conf['language'] = 'en'; diff --git a/install/dist/conf/ubuntu2204.conf.php b/install/dist/conf/ubuntu2204.conf.php new file mode 100644 index 0000000000..050f58f69d --- /dev/null +++ b/install/dist/conf/ubuntu2204.conf.php @@ -0,0 +1,240 @@ + \ No newline at end of file diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php index 7866715b47..10de1d8fbf 100644 --- a/install/lib/install.lib.php +++ b/install/lib/install.lib.php @@ -98,6 +98,10 @@ function get_distname() { $mainver = current($mainver).'.'.next($mainver); } switch ($mainver){ + case "22.04": + $relname = "(Jammy Jellyfish)"; + $distconfid = 'ubuntu2204'; + break; case "20.04": $relname = "(Focal Fossa)"; $distconfid = 'ubuntu2004'; diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index 3d540ac8c8..fa1ea26bab 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 "22.04": + $relname = "(Jammy Jellyfish)"; + $distconfid = 'ubuntu2204'; + break; case "20.04": $relname = "(Focal Fossa)"; $distconfid = 'ubuntu2004'; -- GitLab