From 1f653cb4b501d8f61821760bbce981a69dc700b1 Mon Sep 17 00:00:00 2001 From: doogie <> Date: Thu, 16 Aug 2001 06:23:06 -0800 Subject: [PATCH] [project @ 2001-08-16 07:23:06 by doogie] Add $config_path and $lib_path at the top, and modify the code to use these vars, instead of hard-coding the paths. --- scripts/service.in | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/service.in b/scripts/service.in index 4a8b5cdc..60c966da 100755 --- a/scripts/service.in +++ b/scripts/service.in @@ -1,14 +1,18 @@ #!/usr/bin/perl -# $Id: service.in,v 1.39 2001/08/16 07:22:21 doogie Exp $ +# $Id: service.in,v 1.40 2001/08/16 07:23:06 doogie Exp $ # ^ more or less ^ # # Usage: service .nn # Temps: incoming/P.nn use Mail::Address; -require('/etc/debbugs/config'); -require('/usr/lib/debbugs/errorlib'); -$ENV{'PATH'} = '/usr/lib/debbugs:'.$ENV{'PATH'}; +$config_path = '/org/bugs.debian.org/etc'; +$lib_path = '/org/bugs.debian.org/scripts'; + +require "$config_path/config"; +require "$lib_path/errorlib"; +$ENV{'PATH'} = $lib_path.':'.$ENV{'PATH'}; + chdir("$gSpoolDir") || die "chdir spool: $!\n"; # open(DEBUG,">&4"); -- 2.39.5