diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-03-09 14:53:18 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-04-08 21:29:52 +0200 |
commit | 8b0a6f4332296ba396b3c02401ddd1aa4a97b610 (patch) | |
tree | ee4a6ba11357adf512b5fd51bf1ce897d8bc4922 /migrate.pl | |
parent | e8f272c6f79dc8a919911d88a5b455bc67792f64 (diff) | |
download | bugzilla-8b0a6f4332296ba396b3c02401ddd1aa4a97b610.tar.gz bugzilla-8b0a6f4332296ba396b3c02401ddd1aa4a97b610.tar.xz |
Misc fixes
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'migrate.pl')
-rwxr-xr-x | migrate.pl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/migrate.pl b/migrate.pl index 8980248c7..1de0baff6 100755 --- a/migrate.pl +++ b/migrate.pl @@ -11,8 +11,15 @@ use strict; use warnings; use File::Basename; -BEGIN { chdir dirname($0); } -use lib qw(. lib local/lib/perl5); +use File::Spec; +BEGIN { + require lib; + my $dir = File::Spec->rel2abs(dirname(__FILE__)); + my $base = File::Spec->catdir($dir); + lib->import($base, File::Spec->catdir($base, "lib"), File::Spec->catdir($base, qw(local lib perl5))); + chdir $base; +} + use Bugzilla; use Bugzilla::Migrate; @@ -96,4 +103,4 @@ the size of all attachments in your current bug-tracker. You may also need to increase the number of file handles a process is allowed to hold open (as the migrator will create a file handle for each attachment in your database). On Linux and simliar systems, you can do this as root -by typing C<ulimit -n 65535> before running your script.
\ No newline at end of file +by typing C<ulimit -n 65535> before running your script. |