can only change config as root, avoid warnings in install-log

This commit is contained in:
Ralf Becker 2020-12-04 13:00:19 +01:00
parent 8738ce7fab
commit 20f6f7a43b

View File

@ -805,6 +805,9 @@ function _ucr_secret($name)
*/
function check_fix_php_apc_ini()
{
// can only change config as root
if (function_exists('posix_getuid') && posix_geteuid()) return;
if (extension_loaded('apc') || extension_loaded('apcu'))
{
$shm_size = ini_get('apc.shm_size');
@ -853,6 +856,9 @@ function check_fix_open_basedir_certs()
{
global $config;
// can only change config as root
if (function_exists('posix_getuid') && posix_geteuid()) return;
if (extension_loaded('openssl') && function_exists('openssl_get_cert_locations') &&
($locations = openssl_get_cert_locations()) &&
file_exists($default_cert_dir = $locations['default_cert_dir']))