kohalogdir=$::kohalogdir
kohaversion=$::kohaversion
httpduser=$::httpduser
+intrahtdocs=$::intranetdir/htdocs/includes/templates
+opachtdocs=$::opacdir/htdocs/includes/templates
|;
close(SITES);
umask($old_umask);
|;
sub updatedatabase {
- my $result=system ("perl -I $::intranetdir/modules scripts/updater/updatedatabase");
- if ($result) {
- print "Problem updating database...\n";
- exit;
- }
-
- my $response=showmessage(getmessage('UpdateMarcTables'), 'restrictchar 123', '1');
+ my $result=system ("perl -I $::intranetdir/modules scripts/updater/updatedatabase");
+ if ($result) {
+ print "Problem updating database...\n";
+ exit;
+ }
- if ($response == 1) {
- system("cat script/misc/marc_datas/marc21_en/structure_def.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
- }
- if ($response == 2) {
- system("cat scripts/misc/marc_datas/unimarc_fr/structure_def.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
- system("cat scripts/misc/lang-datas/fr/stopwords.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
- }
+ my $response=showmessage(getmessage('UpdateMarcTables'), 'restrictchar 123', '1');
- system ("perl -I $::kohadir/modules scripts/marc/updatedb2marc.pl");
+ if ($response == 1) {
+ system("cat script/misc/marc_datas/marc21_en/structure_def.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
+ }
+ if ($response == 2) {
+ system("cat scripts/misc/marc_datas/unimarc_fr/structure_def.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
+ system("cat scripts/misc/lang-datas/fr/stopwords.sql | $::mysqldir/bin/mysql -u$::mysqluser -p$::mysqlpass $::dbname");
+ }
+ my $result=system ("perl -I $::intranetdir/modules scripts/marc/updatedb2marc.pl");
+ if ($result) {
+ print "Problem updating database to MARC...\n";
+ exit;
+ }
- print "\n\nFinished updating database. Press <ENTER> to continue...";
- <STDIN>;
+ print "\n\nFinished updating database. Press <ENTER> to continue...";
+ <STDIN>;
}
sub populatedatabase {
# Move files from intranet-cgi to root of tarball
system("mv $rootdir/intranet-cgi/misc/info/* $rootdir");
system("mv $rootdir/intranet-cgi/misc/installer.pl $rootdir");
-system("mv $rootdir/intranet-cgi/misc/installer.pm $rootdir");
system("mv $rootdir/intranet-cgi/misc/koha.upgrade $rootdir");
-#system("mv $rootdir/intranet-cgi/Install.pm $rootdir"); #does not exist ??
+system("mv $rootdir/intranet-cgi/Install.pm $rootdir"); #does not exist ??
#system("mv $rootdir/intranet-cgi/kohareporter $rootdir"); # does not exist ??
chmod 0770, "$rootdir/installer.pl";
chmod 0770, "$rootdir/koha.upgrade";