aboutsummaryrefslogtreecommitdiffstats
path: root/config/autoconfigbackup
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-05-28 14:55:16 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-05-28 14:55:16 -0300
commitd6d2afa3e28a3051b39475ec57311b0adeab0f8d (patch)
tree412c593cfc3b6efeb299f4a73982681f9ac68429 /config/autoconfigbackup
parentf6332796d346869dc1607d698833b23babc9b9db (diff)
downloadpfsense-packages-d6d2afa3e28a3051b39475ec57311b0adeab0f8d.tar.gz
pfsense-packages-d6d2afa3e28a3051b39475ec57311b0adeab0f8d.tar.bz2
pfsense-packages-d6d2afa3e28a3051b39475ec57311b0adeab0f8d.zip
Make sure filesystem is read/write
Diffstat (limited to 'config/autoconfigbackup')
-rw-r--r--config/autoconfigbackup/autoconfigbackup_backup.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup_backup.php b/config/autoconfigbackup/autoconfigbackup_backup.php
index 9ef752fa..78677049 100644
--- a/config/autoconfigbackup/autoconfigbackup_backup.php
+++ b/config/autoconfigbackup/autoconfigbackup_backup.php
@@ -48,7 +48,9 @@ if($_POST) {
else
write_config("Backup invoked via Auto Config Backup.");
$config = parse_config(true);
+ conf_mount_rw();
file_put_contents("/cf/conf/lastpfSbackup.txt", "");
+ conf_mount_ro();
upload_config($_REQUEST['reason']);
$savemsg = "Backup completed successfully.";
$donotshowheader=true;