From d62a265c918bfd9180fdfca718147d6b6a2862f7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 21 May 2014 13:23:31 -0400 Subject: Properly handle this rename, and squelch errors if it fails. --- etc/inc/upgrade_config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 10a2445..7060079 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2657,7 +2657,7 @@ function upgrade_080_to_081() { /* restore the databases, if we have one */ if (restore_rrd()) { /* Make sure to move the rrd backup out of the way. We will make a new one after converting. */ - rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup"); + @rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup/rrd.tgz"); } } -- cgit v1.1