run chown on update just on /var/lib/egroupware/*/files/sqlfs and not whole data directory, as it can have eg. network filesystem mountpoints

This commit is contained in:
Ralf Becker 2018-01-26 15:15:11 +01:00
parent ee68f41be2
commit 25570a0258

View File

@ -604,7 +604,7 @@ function fix_perms()
// 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']);
system('/bin/chown -R '.$config['webserver_user'].' '.$config['data_dir'].'/*/files/sqlfs');
}
}