diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-18 15:10:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-18 15:10:03 +0000 |
commit | 3fd7c6afbddce901d0300ec52ccc2a26b421ecaf (patch) | |
tree | ae9ff94075cbed59f5fb586a5f36334dc60adac4 /etc | |
parent | a08cac49626a79679442f68f452f0f3d769b2283 (diff) | |
download | pfsense-3fd7c6afbddce901d0300ec52ccc2a26b421ecaf.zip pfsense-3fd7c6afbddce901d0300ec52ccc2a26b421ecaf.tar.gz |
Mount drive as RW before operations
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 2 |
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) { |