aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-10-26 21:08:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-10-26 21:08:10 +0000
commitebd40299b546a2d66dba03994dc6ccd3a7c2e7f1 (patch)
treeed0e615b75e49dea0f55fc4f8ce5051d8a46b448
parent1f4162ea5249cd62ef32ed6b9c9bdc6fcf4e3635 (diff)
downloadpfsense-packages-ebd40299b546a2d66dba03994dc6ccd3a7c2e7f1.tar.gz
pfsense-packages-ebd40299b546a2d66dba03994dc6ccd3a7c2e7f1.tar.bz2
pfsense-packages-ebd40299b546a2d66dba03994dc6ccd3a7c2e7f1.zip
Do not show the not configured notice on every bootup, just show it once
and never show it again. Some folks might not want to use this feature on pfDNS and it is nagging.
-rw-r--r--packages/autoconfigbackup/autoconfigbackup.inc13
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/autoconfigbackup/autoconfigbackup.inc b/packages/autoconfigbackup/autoconfigbackup.inc
index 7f9b565f..0ea2f18e 100644
--- a/packages/autoconfigbackup/autoconfigbackup.inc
+++ b/packages/autoconfigbackup/autoconfigbackup.inc
@@ -120,12 +120,13 @@ function upload_config() {
$upload_url = "https://{$username}:{$password}@portal.pfsense.org/pfSconfigbackups/backup.php";
if(!$username or !$password or !$encryptpw) {
-
- $notice_text = "Either the username, password or encryption password is not set for Automatic Configuration Backup. ";
- $notice_text .= "Please correct this in Diagnostics -> AutoConfigBackup -> Settings.";
- log_error($notice_text);
- file_notice("AutoConfigBackup", $notice_text, $notice_text, "");
-
+ if(!file_exists("/cf/conf/autoconfigback.notice")) {
+ $notice_text = "Either the username, password or encryption password is not set for Automatic Configuration Backup. ";
+ $notice_text .= "Please correct this in Diagnostics -> AutoConfigBackup -> Settings.";
+ log_error($notice_text);
+ file_notice("AutoConfigBackup", $notice_text, $notice_text, "");
+ touch("/cf/conf/autoconfigback.notice");
+ }
} else {
/* If configuration has changed, upload to pfS */
if($last_backup_date <> $last_config_change) {