summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-18 15:10:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-18 15:10:03 +0000
commit3fd7c6afbddce901d0300ec52ccc2a26b421ecaf (patch)
treeae9ff94075cbed59f5fb586a5f36334dc60adac4 /etc
parenta08cac49626a79679442f68f452f0f3d769b2283 (diff)
downloadpfsense-3fd7c6afbddce901d0300ec52ccc2a26b421ecaf.zip
pfsense-3fd7c6afbddce901d0300ec52ccc2a26b421ecaf.tar.gz
Mount drive as RW before operations
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index 86dbda1..712c456 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -1153,6 +1153,7 @@ function cleanup_backupcache($revisions = 30) {
global $g;
$i = false;
if(file_exists($g['cf_conf_path'] . '/backup/backup.cache')) {
+ conf_mount_rw();
$backups = get_backups();
$newbaks = array();
$bakfiles = glob($g['cf_conf_path'] . "/backup/config-*");
@@ -1192,6 +1193,7 @@ function cleanup_backupcache($revisions = 30) {
$bakout = fopen($g['cf_conf_path'] . '/backup/backup.cache', "w");
fwrite($bakout, serialize($tocache));
fclose($bakout);
+ conf_mount_ro();
}
if($g['booting']) {
if($i) {
OpenPOWER on IntegriCloud