mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-18 11:58:24 +01:00
can only change config as root, avoid warnings in install-log
This commit is contained in:
parent
8738ce7fab
commit
20f6f7a43b
@ -805,6 +805,9 @@ function _ucr_secret($name)
|
|||||||
*/
|
*/
|
||||||
function check_fix_php_apc_ini()
|
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'))
|
if (extension_loaded('apc') || extension_loaded('apcu'))
|
||||||
{
|
{
|
||||||
$shm_size = ini_get('apc.shm_size');
|
$shm_size = ini_get('apc.shm_size');
|
||||||
@ -853,6 +856,9 @@ function check_fix_open_basedir_certs()
|
|||||||
{
|
{
|
||||||
global $config;
|
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') &&
|
if (extension_loaded('openssl') && function_exists('openssl_get_cert_locations') &&
|
||||||
($locations = openssl_get_cert_locations()) &&
|
($locations = openssl_get_cert_locations()) &&
|
||||||
file_exists($default_cert_dir = $locations['default_cert_dir']))
|
file_exists($default_cert_dir = $locations['default_cert_dir']))
|
||||||
|
Loading…
Reference in New Issue
Block a user