diff options
author | Oliver Tappe | 2007-06-17 12:29:17 +0200 |
---|---|---|
committer | Oliver Tappe | 2007-06-17 12:29:17 +0200 |
commit | 9ba85d5dc63dfd1e16b9ec85d532fe89ee58fd9b (patch) | |
tree | 176dc068777af9af1119c55648ec73e78517393e /config-db/slxconfig | |
parent | Enabled busybox option to allow longer filenames in tar archives (see (diff) | |
download | core-9ba85d5dc63dfd1e16b9ec85d532fe89ee58fd9b.tar.gz core-9ba85d5dc63dfd1e16b9ec85d532fe89ee58fd9b.tar.xz core-9ba85d5dc63dfd1e16b9ec85d532fe89ee58fd9b.zip |
largish change with respect to configurable paths:
* instead of supporting configurable paths at different hierarchy levels,
there are now only five configurable folder:
+ base-path (/opt/openslx), fixed at installation time
+ config-path (/etc/opt/openslx), fixed at installation time
+ private-path (/var/opt/openslx), freely configurable by user
+ public-path (/srv/openslx), freely configurable by user
+ temp-path (/tmp), freely configurable by user
this closes ticket#143
* several holes have been plugged concerning the creation of folders
before they are accessed, closing ticket#142
* the functionality of generating config default folders has been moved
from the Makefile into a new Perl-module (ConfigFolder.pm), in order
to be available to the Perl-scripts, too
* slxsettings has been changed to reflect the nature of base-path and
config-path as fixed paths
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1172 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/slxconfig')
-rwxr-xr-x | config-db/slxconfig | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/config-db/slxconfig b/config-db/slxconfig index fe70e48b..f64b1fcd 100755 --- a/config-db/slxconfig +++ b/config-db/slxconfig @@ -33,6 +33,7 @@ use lib "$FindBin::RealBin/../config-db"; use OpenSLX::Basics; use OpenSLX::ConfigDB; +use OpenSLX::ConfigFolder; use OpenSLX::DBSchema; my ( @@ -371,6 +372,13 @@ sub addSystemToConfigDB unless exists $systemData->{attr_start_x}; } + my $systemConfigPath + = "$openslxConfig{'private-path'}/config/$systemName/default"; + if (!-e $systemConfigPath) { + # create the default (empty) config folders for this system: + createConfigFolderForSystem($systemName); + } + my $systemID = $openslxDB->addSystem([$systemData]); vlog 0, _tr("system '%s' has been successfully added to DB (ID=%s)\n", $systemName, $systemID); @@ -806,23 +814,14 @@ slxsettings, slxos-setup, slxos-export, slxconfig-demuxer Being a part of OpenSLX, this script supports several other options which can be used to overrule the OpenSLX settings: - --base-path=<string> basic path to project files - --bin-path=<string> path to binaries and scripts - --config-path=<string> path to configuration files - --db-basepath=<string> basic path to openslx database - --db-datadir=<string> data folder created under db-basepath --db-name=<string> name of database --db-spec=<string> full DBI-specification of database --db-type=<string> type of database to connect to - --export-path=<string> path to root of all exported filesystems --locale=<string> locale to use for translations --logfile=<string> file to write logging output to --private-path=<string> path to private data --public-path=<string> path to public (client-accesible) data - --share-path=<string> path to sharable data - --stage1-path=<string> path to stage1 systems --temp-path=<string> path to temporary data - --tftpboot-path=<string> path to root of tftp-server --verbose-level=<int> level of logging verbosity (0-3) Please refer to the C<slxsettings>-manpage for a more detailed description |