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 6b2501430e
commit 9a0876a6cf

View File

@ -604,7 +604,7 @@ function fix_perms()
// in case update changes something in filesystem // in case update changes something in filesystem
if (file_exists($config['data_dir']) && !empty($config['webserver_user'])) 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');
} }
} }