[icinga-checkins] icinga.org: icinga-core/master: change ido2db.cfg: ndo2db_[user|group] to ido2db_[user|group]

git at icinga.org git at icinga.org
Tue Oct 20 23:36:12 CEST 2009


Module: icinga-core
Branch: master
Commit: 2e9a9b46d081fd4acd0dd0a4230930ea385e4efe
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2e9a9b46d081fd4acd0dd0a4230930ea385e4efe

Author: Hendrik Baecker <andurin at process-zero.de>
Date:   Tue Oct 20 23:36:09 2009 +0200

change ido2db.cfg: ndo2db_[user|group] to ido2db_[user|group]

---

 module/idoutils/config/ido2db.cfg-sample.in |    4 ++--
 module/idoutils/src/ido2db.c                |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/module/idoutils/config/ido2db.cfg-sample.in b/module/idoutils/config/ido2db.cfg-sample.in
index 0b170a2..6258e5e 100644
--- a/module/idoutils/config/ido2db.cfg-sample.in
+++ b/module/idoutils/config/ido2db.cfg-sample.in
@@ -18,8 +18,8 @@ lock_file=@localstatedir@/ido2db.lock
 # These options determine the user/group that the daemon should run as.
 # You can specify a number (uid/gid) or a name for either option.
 
-ndo2db_user=@icinga_user@
-ndo2db_group=@icinga_grp@
+ido2db_user=@icinga_user@
+ido2db_group=@icinga_grp@
 
 
 
diff --git a/module/idoutils/src/ido2db.c b/module/idoutils/src/ido2db.c
index c6011fd..c8f46dc 100644
--- a/module/idoutils/src/ido2db.c
+++ b/module/idoutils/src/ido2db.c
@@ -501,9 +501,9 @@ int ndo2db_process_config_var(char *arg){
 	else if(!strcmp(var,"trim_db_interval"))
 		ndo2db_db_settings.trim_db_interval=strtoul(val,NULL,0);
 
-	else if(!strcmp(var,"ndo2db_user"))
+	else if((!strcmp(var,"ido2db_user"))||(!strcmp(var,"ndo2db_user")))
 		ndo2db_user=strdup(val);
-	else if(!strcmp(var,"ndo2db_group"))
+	else if((!strcmp(var,"ido2db_group"))||(!strcmp(var,"ndo2db_group")))
 		ndo2db_group=strdup(val);
 
 	else if(!strcmp(var,"debug_file")){





More information about the icinga-checkins mailing list