summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-10-31 10:25:25 -0400
committerjim-p <jimp@pfsense.org>2014-10-31 10:26:12 -0400
commit4045cf1efd15e9cbf88b0e8b3e27428b2dfb3e1e (patch)
treebb7efe583bd6ec7fbc91c599973b3fcdc7a7375c
parente4982b905279930fefbf09bb62f09a364bb0fde4 (diff)
downloadpfsense-4045cf1efd15e9cbf88b0e8b3e27428b2dfb3e1e.zip
pfsense-4045cf1efd15e9cbf88b0e8b3e27428b2dfb3e1e.tar.gz
Fix two more instances of rrd.tgz renaming.
-rw-r--r--etc/inc/upgrade_config.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 1094325..e506dec 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -1991,7 +1991,7 @@ function upgrade_054_to_055() {
/* 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");
}
}
@@ -3107,7 +3107,7 @@ function upgrade_095_to_096() {
/* 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");
}
}
OpenPOWER on IntegriCloud