mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
do NOT run fix_perms, if not running as root
This commit is contained in:
parent
b0d47a8496
commit
a8d5c3987d
@ -617,6 +617,9 @@ function fix_perms()
|
|||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
// chown only works as root (uid=0)
|
||||||
|
if (function_exists('posix_getuid') && posix_geteuid()) return;
|
||||||
|
|
||||||
if (file_exists('/tmp/egw_cache') && !empty($config['webserver_user']))
|
if (file_exists('/tmp/egw_cache') && !empty($config['webserver_user']))
|
||||||
{
|
{
|
||||||
system('/bin/chown -R '.$config['webserver_user'].' /tmp/egw_cache');
|
system('/bin/chown -R '.$config['webserver_user'].' /tmp/egw_cache');
|
||||||
|
Loading…
Reference in New Issue
Block a user