1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: reconfig.coretag,v 1.5 2007-03-30 23:40:54 pajamian Exp $
10 UserTag reconfig Order name table file
11 UserTag reconfig Version $Revision: 1.5 $
12 UserTag reconfig Routine <<EOR
15 my ($name, $table, $file) = @_;
16 $name ||= $Vend::Cfg->{CatalogName};
18 my $myname = $Vend::Cfg->{CatalogName};
19 #::logGlobal("Trying to reconfig $name");
21 if($myname ne '_mv_admin' and $myname ne $name) {
22 $::Values{mv_error_tag_restart} =
23 "Not authorized to reconfig that catalog.";
26 #::logGlobal("Passed name check on reconfig $name");
28 my $script = $Global::Catalog{$name}->{script};
30 logGlobal("Attempt to reconfigure catalog without script?");
31 logError("Attempt to reconfigure catalog without script?");
35 if($table and $file) {
36 $script = join "\t", $script, $table, $file;
38 logData("$Global::RunDir/reconfig", $script);