diff options
author | Michael Janczyk | 2012-12-21 16:50:46 +0100 |
---|---|---|
committer | Michael Janczyk | 2012-12-21 16:50:46 +0100 |
commit | c598592cf9ea258cf8d5c833bd2f9e43feb82307 (patch) | |
tree | 937ca7c1c7fc25523efbb33f2071ebb17b14ca43 /src/installer/slxos-setup | |
parent | Merge branch 'master' of git.openslx.org:openslx/core (diff) | |
download | core-c598592cf9ea258cf8d5c833bd2f9e43feb82307.tar.gz core-c598592cf9ea258cf8d5c833bd2f9e43feb82307.tar.xz core-c598592cf9ea258cf8d5c833bd2f9e43feb82307.zip |
add possibility to sync only config files from <priv>/config/stage1 w/o the need to clone, update or install.
we don't brag about it, yet.
Diffstat (limited to 'src/installer/slxos-setup')
-rwxr-xr-x | src/installer/slxos-setup | 13 |
1 files changed, 13 insertions, 0 deletions
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 |