forked from extern/egroupware
fix permissions in files-directory, if eg. update creates new files, also make nginx.conf a configuration file
This commit is contained in:
parent
0e019deb3b
commit
ddfe924a62
@ -1,2 +1,3 @@
|
||||
/var/lib/egroupware/header.inc.php
|
||||
/etc/egroupware/apache.conf
|
||||
/etc/egroupware/nginx.conf
|
||||
|
@ -590,7 +590,7 @@ function usage($error=null)
|
||||
}
|
||||
|
||||
/**
|
||||
* fix egw_cache perms evtl. created by root, stoping webserver from accessing it
|
||||
* fix egw_cache and files_dir perms evtl. created by root, stoping webserver from accessing it
|
||||
*/
|
||||
function fix_perms()
|
||||
{
|
||||
@ -601,6 +601,11 @@ function fix_perms()
|
||||
system('/bin/chown -R '.$config['webserver_user'].' /tmp/egw_cache');
|
||||
system('/bin/chmod 700 /tmp/egw_cache');
|
||||
}
|
||||
// in case update changes something in filesystem
|
||||
if (file_exists($config['data_dir']) && !empty($config['webserver_user']))
|
||||
{
|
||||
system('/bin/chown -R '.$config['webserver_user'].' '.$config['data_dir']);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user