diff --git a/mailscanner/sf_version.php b/mailscanner/sf_version.php index fddd5b63..0a08a4fa 100644 --- a/mailscanner/sf_version.php +++ b/mailscanner/sf_version.php @@ -79,12 +79,19 @@ $vars[$line[0]] = $line[1]; } } + + echo __('systemos11') . ' '; + $systemos = 'unknown linux'; if (isset($vars['ID']) && in_array(strtolower($vars['ID']), ['centos', 'debian'], true)) { - echo __('systemos11') . ' ' . $vars['PRETTY_NAME'] . '
' . "\n"; + $systemos = $vars['PRETTY_NAME']; + } + else if (isset($vars['ID']) && 'ubuntu' === strtolower($vars['ID'])) { + $systemos = $vars['NAME'] . ' ' . $vars['VERSION']; } - if (isset($vars['ID']) && 'ubuntu' === strtolower($vars['ID'])) { - echo __('systemos11') . ' ' . $vars['NAME'] . ' ' . $vars['VERSION'] . '
' . "\n"; + else if (isset($vars['ID'])) { + $systemos = $vars['ID']; } + echo $systemos . '
' . "\n"; } if ('freebsd' === strtolower(PHP_OS)) { echo __('systemos11') . ' ' . PHP_OS . ' ' . php_uname('r') . ' ' . php_uname('m') . '
' . "\n";