From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: [PATCH 5/7] update.sh: Update to migrate rrd directories for collectd-5.x Date: Wed, 25 Dec 2024 14:48:26 +0100 Message-ID: <20241225134828.6231-5-adolf.belka@ipfire.org> In-Reply-To: <20241225134828.6231-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5150812059047980021==" List-Id: --===============5150812059047980021== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable - Not tested by myself but it uses the same code as in the backup.pl changes = which were tested and worked. So expectation is that they will work in the Core Updat= e but this will be able to be evaluated when the Testing Release is issued. Signed-off-by: Adolf Belka --- config/rootfiles/core/191/update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/rootfiles/core/191/update.sh b/config/rootfiles/core/191/= update.sh index a2d61ec52..fb06896d9 100644 --- a/config/rootfiles/core/191/update.sh +++ b/config/rootfiles/core/191/update.sh @@ -72,6 +72,15 @@ telinit u /etc/init.d/unbound restart /etc/init.d/suricata restart =20 +# Create collectd 4.x to 5.x migration script from rrd contents, run the scr= ipt that +# was created and then remove the old interface directory if it is present a= s it will +# be empty after the migration has been carried out. +/var/ipfire/collectd-migrate-4-to-5.pl --indir /var/log/rrd/ > /tmp/rrd-migr= ate.sh +sh /tmp/rrd-migrate.sh >/dev/null 2>&1 +if [ -d /var/log/rrd/collectd/localhost/interface/ ]; then + rm -Rf /var/log/rrd/collectd/localhost/interface/ +fi + # This update needs a reboot... touch /var/run/need_reboot =20 --=20 2.47.1 --===============5150812059047980021==--