Skip to Content.
Sympa Menu

devel - Robot configuration location not satisfactory

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: address@concealed (Jérôme Marant)
  • To: address@concealed
  • Subject: Robot configuration location not satisfactory
  • Date: 20 Jan 2002 23:14:23 +0100


Hi,

When I installed the first version of my new debian package, I discovered
that Sympa was seeking for robot configuration in --DIR--/etc, which is
on my system /usr/lib/sympa/etc.
However, I think that this should go along with sympa.conf and wwsympa.conf,
which are for me in /etc/sympa. But I cannot do this currently (same thing
for task models).
I seems that wwsympa is seeking for robot configuration in $Conf{'etc'}.

$ grep -- --DIR--/etc src/*

Conf.pm: 'etc' => '--DIR--/etc',
Conf.pm: unless (opendir DIR,'--DIR--/etc' ) {
Conf.pm: printf STDERR "Unable to open directory --DIR--/etc for
virtual robots config\n" ;
Conf.pm: next unless (-d "--DIR--/etc/$robot");
Conf.pm: next unless (-r "--DIR--/etc/$robot/robot.conf");
Conf.pm: unless (open (ROBOT_CONF,"--DIR--/etc/$robot/robot.conf")) {
Conf.pm: printf STDERR "load robots config: Unable to open
--DIR--/etc/$robot/robot.conf\n";
Conf.pm: my $config = '--DIR--/etc/auth.conf';
List.pm: unless (opendir(DIR, '--DIR--/etc')) {
List.pm: do_log('err',"Unable to open --DIR--/etc");
List.pm: next unless (-r "--DIR--/etc/$r/robot.conf");
task_manager.pl:my $user_global_task_model_dir =
"--DIR--/etc/global_task_models";

So, I do propose the following:

- 'etc' => '--CONFDIR--',
- replacing every "--DIR--/etc" with $Conf{'etc'}

Thanks for commenting on this.

--
Jérôme Marant <address@concealed>
<address@concealed>

http://marant.org



Archive powered by MHonArc 2.6.19+.

Top of Page