From a9f7fbc31d1a8ede02a9dcf4b500f6b6b5ebb01d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 1 Sep 2015 11:10:17 +0000 Subject: [PATCH] fix for Univention removing quotes in /etc/lsb-release http://errata.univention.de/ucs/4.0/286.html --- doc/rpm-build/post_install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/rpm-build/post_install.php b/doc/rpm-build/post_install.php index 2ca6234bc8..295b29bd59 100755 --- a/doc/rpm-build/post_install.php +++ b/doc/rpm-build/post_install.php @@ -92,7 +92,7 @@ function set_distro_defaults($distro=null) { $distro = file_exists('/etc/SuSE-release') ? 'suse' : (file_exists('/etc/mandriva-release') ? 'mandriva' : - (file_exists('/etc/lsb-release') && preg_match('/^DISTRIB_ID="Univention"$/mi', + (file_exists('/etc/lsb-release') && preg_match('/^DISTRIB_ID="?Univention"?$/mi', file_get_contents('/etc/lsb-release')) ? 'univention' : (file_exists('/etc/debian_version') ? 'debian' : 'rh'))); }