From ccc963ab5696f1bb443addb3e1dfaa6a05ffd2c7 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 20 Dec 2002 13:55:01 +0000 Subject: [PATCH] uses temp koha.conf file by default --- marc/updatedb2marc.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/marc/updatedb2marc.pl b/marc/updatedb2marc.pl index 77eb4402b9..ca1ad87ff3 100755 --- a/marc/updatedb2marc.pl +++ b/marc/updatedb2marc.pl @@ -22,7 +22,7 @@ package C4::test; use strict; require Exporter; -use C4::Context; +use C4::Context("/etc/koha.conf.tmpXX"); use C4::Catalogue; use C4::Biblio; use MARC::Record; @@ -30,6 +30,10 @@ use MARC::File::USMARC; #die; my $dbh = C4::Context->dbh; +my $sth = $dbh->prepare("select * from systempreferences"); +$sth->execute; +print "connecté\n"; +die; $dbh->do("delete from marc_biblio"); $dbh->do("delete from marc_blob_subfield"); $dbh->do("delete from marc_subfield_table");