From 7a6f65a293f84b9a65b7392ad1d074efb5f7faab Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sun, 18 Aug 2024 10:25:40 +0200 Subject: [PATCH] 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 --- src/etc/inc/rrd.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/inc/rrd.inc b/src/etc/inc/rrd.inc index 7f04333bb..6f9718e3f 100644 --- a/src/etc/inc/rrd.inc +++ b/src/etc/inc/rrd.inc @@ -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 */