diff options
author | Sebastian Schmelzer | 2009-05-22 19:27:30 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2009-05-22 19:27:30 +0200 |
commit | 3eb541251dedf796307d33b195f2510d506626a7 (patch) | |
tree | ee229e4c066aba6424f72f3496f0991a9d42a40c /boot-env/preboot/http-server/user_settings.pl | |
parent | use dialog menus instead of radioboxes (diff) | |
download | core-3eb541251dedf796307d33b195f2510d506626a7.tar.gz core-3eb541251dedf796307d33b195f2510d506626a7.tar.xz core-3eb541251dedf796307d33b195f2510d506626a7.zip |
add apache config; minor path changes
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2865 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'boot-env/preboot/http-server/user_settings.pl')
-rwxr-xr-x | boot-env/preboot/http-server/user_settings.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/boot-env/preboot/http-server/user_settings.pl b/boot-env/preboot/http-server/user_settings.pl index 4f57d8b8..3469dce0 100755 --- a/boot-env/preboot/http-server/user_settings.pl +++ b/boot-env/preboot/http-server/user_settings.pl @@ -19,6 +19,15 @@ use CGI; use CGI::Carp qw(fatalsToBrowser); use File::Path; +# add openslx stuff to @INC +use FindBin; +use lib "$FindBin::RealBin/../../../../lib"; +use lib "$FindBin::RealBin"; + +# read default config +use OpenSLX::Basics; +openslxInit(); + # die "*** Taint mode must be active! ***" unless ${^TAINT}; my $cgi = CGI->new; @@ -30,8 +39,9 @@ my $prebootID = $cgi->param('preboot_id') || ''; die "must give 'system' ($system), 'client' ($client) and 'preboot_id' ($prebootID)!\n" unless $system && $client && $prebootID; -my $src = "/srv/openslx/preboot/client-config/$system/default.tgz"; -my $destPath = "/srv/www/openslx/preboot/$prebootID/client-config/$system"; +my $webPath = "$openslxConfig{'public-path'}/preboot"; +my $src = "$webPath/client-config/$system/$prebootID.tgz"; +my $destPath = "$webPath/$prebootID/client-config/$system"; mkpath($destPath); system(qq{cp $src $destPath/$client.tgz}); |