From 391a3936aea2baf556d07be2e98ade6e4b0a9ec2 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Sun, 17 Feb 2008 00:55:00 +0000 Subject: * Added example how you can copy files outside of the chroot git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1552 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm index 252e8ae7..b45e62d3 100644 --- a/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm +++ b/os-plugins/plugins/example/OpenSLX/OSPlugin/example.pm @@ -1,4 +1,4 @@ -# Copyright (c) 2007 - OpenSLX GmbH +# Copyright (c) 2008 - OpenSLX GmbH # # This program is free software distributed under the GPL version 2. # See http://openslx.org/COPYING @@ -108,6 +108,19 @@ sub preInstallationPhase # a temporary playground that will be cleaned up automatically # in this example plugin, there's no need to do anything here ... + + # uncomment the following if you need to copy files + ## get path of files we need to install + #my $pluginName = $self->{'name'}; + + ##my $pluginFilesPath + # = "$openslxConfig{'base-path'}/lib/plugins/$pluginName/files"; + + ## copy all needed files now + #my @files = ("file1", "file2"); + #foreach my $file (@files) { + # copyFile("$pluginFilesPath/$file", "$pluginRepositoryPath"); + #} } sub installationPhase -- cgit v1.2.3-55-g7522