[Koha-cvs] CVS: koha/misc Install.pm,1.88.2.3,1.88.2.4 koha.upgrade,1.17.2.1,1.17.2.2
MJ Ray
slef at users.sourceforge.net
Fri Feb 4 19:41:45 CET 2005
Update of /cvsroot/koha/koha/misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23104
Modified Files:
Tag: rel_2_2
Install.pm koha.upgrade
Log Message:
Change to keep admin password off of the command line so that bad people cannot read it from ps. Use the setmysqlclipass() function.
Index: Install.pm
===================================================================
RCS file: /cvsroot/koha/koha/misc/Install.pm,v
retrieving revision 1.88.2.3
retrieving revision 1.88.2.4
diff -C2 -r1.88.2.3 -r1.88.2.4
*** Install.pm 4 Feb 2005 18:19:48 -0000 1.88.2.3
--- Install.pm 4 Feb 2005 18:41:42 -0000 1.88.2.4
***************
*** 2153,2157 ****
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=$hostname $database|");
(open BF, ">$backupdir/Koha.backup_$date") || (die "Error opening up backup file $backupdir/Koha.backup_$date: $!\n");
--- 2153,2158 ----
my $date= sprintf "%4d-%02d-%02d_%02d:%02d:%02d", $year, $month, $day,$hr,$min,$sec;
! setmysqlclipass($pass);
! open (MD, "$mysqldir/bin/mysqldump --user=$user --host=$hostname $database|");
(open BF, ">$backupdir/Koha.backup_$date") || (die "Error opening up backup file $backupdir/Koha.backup_$date: $!\n");
Index: koha.upgrade
===================================================================
RCS file: /cvsroot/koha/koha/misc/koha.upgrade,v
retrieving revision 1.17.2.1
retrieving revision 1.17.2.2
diff -C2 -r1.17.2.1 -r1.17.2.2
*** koha.upgrade 4 Feb 2005 18:19:47 -0000 1.17.2.1
--- koha.upgrade 4 Feb 2005 18:41:43 -0000 1.17.2.2
***************
*** 34,42 ****
Install::setkohaversion($::newversion);
checkperlmodules();
backupkoha();
getapacheinfo();
installfiles();
# custom templates warning added to installfiles();
- backupmycnf();
updatedatabase();
restoremycnf();
--- 34,42 ----
Install::setkohaversion($::newversion);
checkperlmodules();
+ backupmycnf();
backupkoha();
getapacheinfo();
installfiles();
# custom templates warning added to installfiles();
updatedatabase();
restoremycnf();
More information about the Koha-cvs
mailing list