From 95c99f1d91f168d9560d8352c2dd4eb8b12311ce Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 17 Apr 2008 23:51:35 +0000 Subject: Use defined system username and fall back to admin for config sync. --- packages/spamd.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/spamd.inc b/packages/spamd.inc index 0a17bb72..c6846507 100644 --- a/packages/spamd.inc +++ b/packages/spamd.inc @@ -152,7 +152,10 @@ function sync_spamd_config_to_backup() { if($carp['synchronizetoip'] != "" ) { $synctoip = $carp['synchronizetoip']; $password = $carp['password']; - $username = "admin"; + if($config['system']['username']) + $username = $config['system']['username']; + else + $username = "admin"; } } } -- cgit v1.2.3