mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
Reporting / rrd - start using cron for rrd collection. [2]
Minor temporary fix in case /var/db/rrd/updaterrd.sh doesn't exist. All of this will vanish soon, so it isn't worth the effort of chaging the file mode and retesting. ref https://github.com/opnsense/core/issues/7753
This commit is contained in:
parent
e37e67ebcd
commit
7a6f65a293
@ -110,6 +110,7 @@ function rrd_configure($verbose = false, $bootup = false)
|
||||
}
|
||||
chown($rrddbpath, "nobody");
|
||||
/* open file handle to update script and lock it in exclusive mode */
|
||||
@touch('/var/db/rrd/updaterrd.sh');
|
||||
$fobj = new \OPNsense\Core\FileObject('/var/db/rrd/updaterrd.sh', 'r+', 0755, LOCK_EX);
|
||||
|
||||
/* db update script */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user