mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only try to chown files that still exist. Ticket #6131
This commit is contained in:
parent
aeb81f5b20
commit
96860e98c3
@ -1070,7 +1070,9 @@ EOD;
|
||||
|
||||
$databases = glob("{$rrddbpath}/*.rrd");
|
||||
foreach ($databases as $database) {
|
||||
chown($database, "nobody");
|
||||
if (file_exists($database)) {
|
||||
chown($database, "nobody");
|
||||
}
|
||||
}
|
||||
|
||||
if (platform_booting()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user