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:
Ad Schellevis 2024-08-18 10:25:40 +02:00
parent e37e67ebcd
commit 7a6f65a293

View File

@ -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 */