From d561c9b1d1440185a5000c3d4df4395ba6de9a22 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 29 May 2007 20:06:16 +0000 Subject: * changed handling of exports to drop support for having more than one export for a given vendor-OS with the same export-type * exports are now named according to the pattern - (instead of - where X was a letter) * change slxos-export to show the export-config-info after updating an export, too (not only after creating a new export). git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1108 95ad53e4-c205-0410-b2fa-d234c58c8868 --- installer/slxos-export | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) (limited to 'installer/slxos-export') diff --git a/installer/slxos-export b/installer/slxos-export index 6b44d5ef..4ba63ec2 100755 --- a/installer/slxos-export +++ b/installer/slxos-export @@ -84,7 +84,7 @@ if ($action =~ m[^list-ex]i) { } elsif ($action =~ m[^list-ty]i) { print _tr("List of supported export types:\n\t"); print join("\n\t", sort keys %supportedExportTypes)."\n"; -} elsif ($action =~ m[^(add|export)]i) { +} elsif ($action =~ m[^export]i) { if (scalar(@ARGV) != 2) { print STDERR _tr("You need to specify exactly one vendor-os-name and one export-type!\n"); pod2usage(2); @@ -105,29 +105,9 @@ if ($action =~ m[^list-ex]i) { $engine->{'vendor-os-path'}); } $engine->exportVendorOS(); -} elsif ($action =~ m[^(update)]i) { - if (scalar(@ARGV) != 1) { - print STDERR _tr("You need to specify exactly one export-name!\n"); - pod2usage(2); - } - my $exportName = shift @ARGV; - - # we chdir into the script's folder such that all relative paths have - # a known starting point: - chdir($FindBin::RealBin) - or die _tr("can't chdir to script-path <%> (%s)", $FindBin::RealBin, $!); - - # create OSExport-engine for given export type and start it: - my $engine = OpenSLX::OSExport::Engine->new; - $engine->initializeFromExisting($exportName); - if (!-e $engine->{'vendor-os-path'}) { - die _tr("vendor-OS '%s' doesn't exist, giving up!\n", - $engine->{'vendor-os-path'}); - } - $engine->updateExportedVendorOS(); } elsif ($action =~ m[^remove]i) { if (scalar(@ARGV) != 1) { - print STDERR _tr("You need to specify exactly one export-name and one export-type!\n"); + print STDERR _tr("You need to specify exactly one export-name!\n"); pod2usage(2); } my $exportName = shift @ARGV; @@ -143,11 +123,10 @@ if ($action =~ m[^list-ex]i) { $engine->purgeExport(); } else { print STDERR _tr("You need to specify exactly one action: - add + export list-exported list-installed list-types - update remove Try '%s --help' for more info.\n", $0); } @@ -173,12 +152,12 @@ slxos-export [options] =over 8 -=item B<< add >> +=item B<< export >> exports the vendor-OS with the given name using the given export type and adds it to the config-DB, too. The export will be named as the vendor-OS, but with an additional '-' appended to it (where will be replaced -by the letter A,B,C ...). +by the chosen export-type). =item B<< list-exported >> @@ -192,11 +171,6 @@ list all installed vendor-OSes list all supported export types -=item B<< update >> - -updates the export with the given name, i.e. the contents of the vendor-OS -is synced to the export - =item B<< remove >> removes the export with the given name from disk and config-DB -- cgit v1.2.3-55-g7522