aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-11 22:32:07 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-11 22:32:07 +0000
commit0490153f10e92f585f00b5fdf4b87273601dad3c (patch)
tree33f27bfe96516c7cbe5cab75c54dbe26c20576d6 /packages
parente3f9f7774b0dd8889f2d5fb3bae0778ba3ac115f (diff)
downloadpfsense-packages-0490153f10e92f585f00b5fdf4b87273601dad3c.tar.gz
pfsense-packages-0490153f10e92f585f00b5fdf4b87273601dad3c.tar.bz2
pfsense-packages-0490153f10e92f585f00b5fdf4b87273601dad3c.zip
Note that a backup occurs when you save the settings.
Diffstat (limited to 'packages')
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.php2
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.xml4
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.php b/packages/autoconfigbackup/autoconfigbackup.php
index 0a47186a..c429db38 100644
--- a/packages/autoconfigbackup/autoconfigbackup.php
+++ b/packages/autoconfigbackup/autoconfigbackup.php
@@ -63,6 +63,8 @@ if(!$username) {
if($_POST['Backup now']) {
write_config("Backup Now invoked via Auto Config Backup.");
$savemsg = "A configuration backup has been queued.";
+ exec("echo > /cf/conf/lastpfSbackup.txt");
+ filter_configure();
}
if($_REQUEST['newver'] != "") {
diff --git a/packages/autoconfigbackup/autoconfigbackup.xml b/packages/autoconfigbackup/autoconfigbackup.xml
index 840ccd85..d4f95af7 100644
--- a/packages/autoconfigbackup/autoconfigbackup.xml
+++ b/packages/autoconfigbackup/autoconfigbackup.xml
@@ -124,7 +124,11 @@
<custom_add_php_command>
</custom_add_php_command>
<custom_php_resync_config_command>
+ exec("echo > /cf/conf/lastpfSbackup.txt");
filter_configure();
+ if($savemsg)
+ $savemsg .= "<br/>";
+ $savemsg .= "A configuration backup has been queued.";
</custom_php_resync_config_command>
<custom_php_install_command>
</custom_php_install_command>