[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha koha.upgrade,1.1.2.3,1.1.2.4
From: |
Mike Mylonas |
Subject: |
[Koha-cvs] CVS: koha koha.upgrade,1.1.2.3,1.1.2.4 |
Date: |
Fri, 28 Jun 2002 17:43:02 -0700 |
Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv11379/koha
Modified Files:
Tag: rel-1-2
koha.upgrade
Log Message:
fixed script to handle mysqldump not being in the path, also fixed a typo
Index: koha.upgrade
===================================================================
RCS file: /cvsroot/koha/koha/Attic/koha.upgrade,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -r1.1.2.3 -r1.1.2.4
*** koha.upgrade 27 Jun 2002 22:28:44 -0000 1.1.2.3
--- koha.upgrade 29 Jun 2002 00:43:00 -0000 1.1.2.4
***************
*** 1,5 ****
#!/usr/bin/perl -w
-
my %configfile;
open (KC, "/etc/koha.conf");
--- 1,4 ----
***************
*** 88,91 ****
--- 87,105 ----
#
#
+ my $mysql;
+ my $mysqldir;
+
+ foreach my $mysql (qw(/usr/local/mysql
+ /opt/mysql
+ )) {
+ if ( -d $mysql ) {
+ $mysqldir=$mysql;
+ }
+ }
+ if (!$mysqldir){
+ $mysqldir='/usr';
+ }
+
+
my ($sec, $min, $hr, $day, $month, $year) = (localtime(time))[0,1,2,3,4,5];
***************
*** 94,98 ****
my $date= sprintf "%4d-%02d-%02d_%02d:%02d:%02d", $year, $month,
$day,$hr,$min,$sec;
! open (MD, "mysqldump --user=$user --password=$pass --host=$host $database|");
open BF, ">$backupdir/Koha.backup_$date";
--- 108,112 ----
my $date= sprintf "%4d-%02d-%02d_%02d:%02d:%02d", $year, $month,
$day,$hr,$min,$sec;
! open (MD, "$mysqldir/bin/mysqldump --user=$user --password=$pass --host=$host
$database|");
open BF, ">$backupdir/Koha.backup_$date";
***************
*** 307,316 ****
In your INTRANET VirtualHost section you should have:
DocumentRoot $intranetdir/htdocs
! ScriptAlias /cgi-bin/koha/ $intranetroot/cgi-bin/
SetEnv PERL5LIB $intranetdir/modules
In the OPAC VirtualHost section you should have:
DocumentRoot $opacdir/htdocs
! ScriptAlias /cgi-bin/koha/ $opacroot/cgi-bin/
SetEnv PERL5LIB $intranetdir/modules
--- 321,330 ----
In your INTRANET VirtualHost section you should have:
DocumentRoot $intranetdir/htdocs
! ScriptAlias /cgi-bin/koha/ $intranetdir/cgi-bin/
SetEnv PERL5LIB $intranetdir/modules
In the OPAC VirtualHost section you should have:
DocumentRoot $opacdir/htdocs
! ScriptAlias /cgi-bin/koha/ $opacdir/cgi-bin/
SetEnv PERL5LIB $intranetdir/modules
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha koha.upgrade,1.1.2.3,1.1.2.4,
Mike Mylonas <=