From 3f59b811c2845d16e66d274594b09e511c0815b2 Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 14 May 2003 13:33:42 +0000 Subject: [PATCH] workaround for 412 until sample data works --- misc/Install.pm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/misc/Install.pm b/misc/Install.pm index 6c21c564e0..75c9d00684 100644 --- a/misc/Install.pm +++ b/misc/Install.pm @@ -1595,15 +1595,15 @@ sample data, install them. =cut sub populatedatabase { - my $response=showmessage(getmessage('SampleData'), 'yn', 'n'); - if ($response =~/^y/i) { - system("gunzip -d < sampledata-1.2.gz | $mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname"); - system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branches (branchcode,branchname,issuing) values ('MAIN', 'Main Library', 1)\""); - system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branchrelations (branchcode,categorycode) values ('MAIN', 'IS')\""); - system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branchrelations (branchcode,categorycode) values ('MAIN', 'CU')\""); - system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into printers (printername,printqueue,printtype) values ('Circulation Desk Printer', 'lp', 'hp')\""); - showmessage(getmessage('SampleDataInstalled'), 'PressEnter','',1); - } else { +# my $response=showmessage(getmessage('SampleData'), 'yn', 'n'); +# if ($response =~/^y/i) { +# system("gunzip -d < sampledata-1.2.gz | $mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname"); +# system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branches (branchcode,branchname,issuing) values ('MAIN', 'Main Library', 1)\""); +# system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branchrelations (branchcode,categorycode) values ('MAIN', 'IS')\""); +# system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into branchrelations (branchcode,categorycode) values ('MAIN', 'CU')\""); +# system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into printers (printername,printqueue,printtype) values ('Circulation Desk Printer', 'lp', 'hp')\""); +# showmessage(getmessage('SampleDataInstalled'), 'PressEnter','',1); +# } else { my $input; my $response=showmessage(getmessage('AddBranchPrinter'), 'yn', 'y'); @@ -1634,7 +1634,7 @@ sub populatedatabase { $printerqueue=showmessage(getmessage('PrinterQueue', [$printerqueue]), 'free', $printerqueue, 1); $printerqueue=~s/[^A-Za-z0-9]//g; system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"insert into printers (printername,printqueue,printtype) values ('$printername', '$printerqueue', '')\""); - } +# } my $language=showmessage(getmessage('Language'), 'free', 'en'); system("$mysqldir/bin/mysql -u$mysqluser $mysqlpass_quoted $dbname -e \"update systempreferences set value='$language' where variable='opaclanguages'\""); } -- 2.39.5