aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-06 23:41:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-06 23:41:37 +0000
commitf834c579096563f476ee179e1a6225df59bcc6e1 (patch)
tree6bc5ef5c071d68f8842ecee9b18d29f3308f907a
parent6f37633e9420b577e6eaa89f2c8e54761df34a9d (diff)
downloadpfsense-packages-f834c579096563f476ee179e1a6225df59bcc6e1.tar.gz
pfsense-packages-f834c579096563f476ee179e1a6225df59bcc6e1.tar.bz2
pfsense-packages-f834c579096563f476ee179e1a6225df59bcc6e1.zip
Set filter loading status during backup operations
-rw-r--r--packages/autoconfigbackup/upload_config_filter.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/autoconfigbackup/upload_config_filter.php b/packages/autoconfigbackup/upload_config_filter.php
index 3433dd85..83c3040b 100644
--- a/packages/autoconfigbackup/upload_config_filter.php
+++ b/packages/autoconfigbackup/upload_config_filter.php
@@ -32,6 +32,7 @@ if($last_backup_date <> $last_config_change) {
config_lock();
log_error("Beginning portal.pfsense.org configuration backup.");
+ update_filter_reload_status("Beginning portal.pfsense.org configuration backup.");
// Encrypt config.xml
$data = file_get_contents("/cf/conf/config.xml");
@@ -75,8 +76,10 @@ if($last_backup_date <> $last_config_change) {
if(!strstr($data, "500")) {
log_error("An error occured while uploading your pfSense configuration to portal.pfsense.org ($data)");
file_notice("autoconfigurationbackup", "An error occured while uploading your pfSense configuration to portal.pfsense.org", $data, "");
+ update_filter_reload_status("An error occured while uploading your pfSense configuration to portal.pfsense.org - $data");
} else {
log_error("End of portal.pfsense.org configuration backup (success).");
+ update_filter_reload_status("End of portal.pfsense.org configuration backup (success).");
}
// Unlock config