better upgrade
This commit is contained in:
parent
9549d37033
commit
53ab84ccff
2 changed files with 8 additions and 6 deletions
|
|
@ -23,6 +23,8 @@
|
||||||
sbin/rebuildLineage.pl
|
sbin/rebuildLineage.pl
|
||||||
- fix [ 1356544 ] FAQ template in collaboration has wrong anchors
|
- fix [ 1356544 ] FAQ template in collaboration has wrong anchors
|
||||||
- fix [ 1373493 ] Upgrade script fails because parameters are not quoted
|
- fix [ 1373493 ] Upgrade script fails because parameters are not quoted
|
||||||
|
- Upgrade now uses --results-file parameter on mysqldump because some
|
||||||
|
operating system don't handle UTF-8 characters through their pipes.
|
||||||
|
|
||||||
6.8.0
|
6.8.0
|
||||||
- Switched Date::Manip to DateTime for better performance and more
|
- Switched Date::Manip to DateTime for better performance and more
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@ my $help;
|
||||||
my $history;
|
my $history;
|
||||||
my $override;
|
my $override;
|
||||||
my $quiet;
|
my $quiet;
|
||||||
my $mysql = "/usr/bin/mysql";
|
my $mysql = "mysql";
|
||||||
my $mysqldump = "/usr/bin/mysqldump";
|
my $mysqldump = "mysqldump";
|
||||||
my $backupDir = "/tmp/backups";
|
my $backupDir = "/tmp/backups";
|
||||||
my $skipBackup;
|
my $skipBackup;
|
||||||
my $doit;
|
my $doit;
|
||||||
|
|
@ -56,7 +56,7 @@ Usage: perl $0 --doit
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--backupDir The folder where backups should be
|
--backupDir The folder where backups should be
|
||||||
created. Defaults to '/data/backups'.
|
created. Defaults to '$backupDir'.
|
||||||
|
|
||||||
--doit This flag is required. You MUST include this
|
--doit This flag is required. You MUST include this
|
||||||
flag in your command line or the upgrade
|
flag in your command line or the upgrade
|
||||||
|
|
@ -69,10 +69,10 @@ Options:
|
||||||
flag will NOT run the upgrade.
|
flag will NOT run the upgrade.
|
||||||
|
|
||||||
--mysql The path to your mysql client executable.
|
--mysql The path to your mysql client executable.
|
||||||
Defaults to '/usr/bin/mysql'.
|
Defaults to '$mysqldump'.
|
||||||
|
|
||||||
--mysqldump The path to your mysqldump executable.
|
--mysqldump The path to your mysqldump executable.
|
||||||
Defaults to '/usr/bin/mysqldump'.
|
Defaults to '$mysql'.
|
||||||
|
|
||||||
--override This utility is designed to be run as
|
--override This utility is designed to be run as
|
||||||
a privileged user on Linux style systems.
|
a privileged user on Linux style systems.
|
||||||
|
|
@ -236,7 +236,7 @@ foreach my $filename (keys %config) {
|
||||||
my $cmd = qq!$dumpcmd -u"$config{$filename}{dbuser}" -p"$config{$filename}{dbpass}"!;
|
my $cmd = qq!$dumpcmd -u"$config{$filename}{dbuser}" -p"$config{$filename}{dbpass}"!;
|
||||||
$cmd .= " --host=".$config{$filename}{host} if ($config{$filename}{host});
|
$cmd .= " --host=".$config{$filename}{host} if ($config{$filename}{host});
|
||||||
$cmd .= " --port=".$config{$filename}{port} if ($config{$filename}{port});
|
$cmd .= " --port=".$config{$filename}{port} if ($config{$filename}{port});
|
||||||
$cmd .= " --add-drop-table --databases ".$config{$filename}{db}." > "
|
$cmd .= " --add-drop-table --databases ".$config{$filename}{db}." --result-file="
|
||||||
.$backupTo.$slash.$config{$filename}{db}."_".$upgrade{$upgrade}{from}.".sql";
|
.$backupTo.$slash.$config{$filename}{db}."_".$upgrade{$upgrade}{from}.".sql";
|
||||||
unless (system($cmd)) {
|
unless (system($cmd)) {
|
||||||
print "OK\n" unless ($quiet);
|
print "OK\n" unless ($quiet);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue