summaryrefslogtreecommitdiffstats
path: root/installer/slxos-export
diff options
context:
space:
mode:
authorOliver Tappe2007-05-29 22:06:16 +0200
committerOliver Tappe2007-05-29 22:06:16 +0200
commitd561c9b1d1440185a5000c3d4df4395ba6de9a22 (patch)
treed1b2227c7e47e8479c52bcb0e8490aa4bd5d1cb8 /installer/slxos-export
parent* (hopefully) fixed problem with respect to wget repeatedly failing with (diff)
downloadcore-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.gz
core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.tar.xz
core-d561c9b1d1440185a5000c3d4df4395ba6de9a22.zip
* 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 <vendor-os>-<export-type> (instead of <vendor-os>-<X> 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
Diffstat (limited to 'installer/slxos-export')
-rwxr-xr-xinstaller/slxos-export36
1 files changed, 5 insertions, 31 deletions
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] <action>
=over 8
-=item B<< add <vendor-OS-name> <export-type> >>
+=item B<< export <vendor-OS-name> <export-type> >>
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 '-<X>' appended to it (where <X> 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 <export-name> >>
-
-updates the export with the given name, i.e. the contents of the vendor-OS
-is synced to the export
-
=item B<< remove <export-name> >>
removes the export with the given name from disk and config-DB