From c598592cf9ea258cf8d5c833bd2f9e43feb82307 Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Fri, 21 Dec 2012 16:50:46 +0100 Subject: add possibility to sync only config files from /config/stage1 w/o the need to clone, update or install. we don't brag about it, yet. --- src/installer/slxos-setup | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/installer/slxos-setup') diff --git a/src/installer/slxos-setup b/src/installer/slxos-setup index 30c9287b..acfb3b8d 100755 --- a/src/installer/slxos-setup +++ b/src/installer/slxos-setup @@ -131,6 +131,18 @@ if ($action =~ m[^import]i) { or die _tr("can't chdir to script-path <%> (%s)", $FindBin::RealBin, $!); $engine->initialize($vendorOSName, 'clone'); $engine->cloneVendorOS($source); +} elsif ($action =~ m[^config]i) { + my $vendorOSName = shift @ARGV; + if (!defined $vendorOSName) { + print STDERR _tr("You need to specify exactly one vendor-OS-name!\n"); + pod2usage(2); + } + # 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, $!); + $engine->initialize($vendorOSName, 'config'); + $engine->configVendorOS(); } elsif ($action =~ m[^remove]i) { my $vendorOSName = shift @ARGV; if (!defined $vendorOSName) { @@ -178,6 +190,7 @@ if ($action =~ m[^import]i) { sort glob("$openslxConfig{'private-path'}/stage1/*") ); } else { +# config # don't brag about it, yet. vlog(0, _tr(unshiftHereDoc(<<' END-OF-HERE'), $0)); You need to specify exactly one action: clone -- cgit v1.2.3-55-g7522