Changeset 760
- Timestamp:
- 03/08/07 02:40:27 (2 years ago)
- Files:
-
- branches/filepaths-20070306/server/mogdbsetup (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/filepaths-20070306/server/mogdbsetup
r664 r760 19 19 my $opt_noschemabump; 20 20 my $dbtype = "MySQL"; 21 my $plugins; 21 22 22 23 usage() … … 33 34 "noschemabump" => \$opt_noschemabump, 34 35 "type=s" => \$dbtype, 36 "plugins=s" => \$plugins, 35 37 ); 36 38 … … 74 76 my $sclass = "MogileFS::Store::$dbtype"; 75 77 eval "use $sclass; 1;" or die "Failed to load $sclass: $@"; 78 79 foreach my $plugin (split /\s*,\s*/, $plugins) { 80 eval "use MogileFS::Plugin::$plugin; 1;" or die "Failed to load plugin $plugin: $@"; 81 } 76 82 77 83 confirm("This will attempt to setup or upgrade your MogileFS database.\nIt won't destroy existing data.\nRun with --help for more information. Run with --yes to shut up these prompts.\n\nContinue?", 0);
