mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-16 13:03:16 +01:00
fix for Univention removing quotes in /etc/lsb-release http://errata.univention.de/ucs/4.0/286.html
This commit is contained in:
parent
38d7f53a16
commit
a9f7fbc31d
@ -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')));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user