From 3fd7c6afbddce901d0300ec52ccc2a26b421ecaf Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 18 Aug 2005 15:10:03 +0000 Subject: Mount drive as RW before operations --- etc/inc/config.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') 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) { -- cgit v1.1