mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +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
ed39c529da
commit
b0039949af
@ -92,7 +92,7 @@ function set_distro_defaults($distro=null)
|
|||||||
{
|
{
|
||||||
$distro = file_exists('/etc/SuSE-release') ? 'suse' :
|
$distro = file_exists('/etc/SuSE-release') ? 'suse' :
|
||||||
(file_exists('/etc/mandriva-release') ? 'mandriva' :
|
(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_get_contents('/etc/lsb-release')) ? 'univention' :
|
||||||
(file_exists('/etc/debian_version') ? 'debian' : 'rh')));
|
(file_exists('/etc/debian_version') ? 'debian' : 'rh')));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user