summaryrefslogtreecommitdiff
path: root/solenv/bin/modules/installer/systemactions.pm
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/modules/installer/systemactions.pm')
-rw-r--r--solenv/bin/modules/installer/systemactions.pm9
1 files changed, 7 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/systemactions.pm b/solenv/bin/modules/installer/systemactions.pm
index 69aef84ebcd7..ec6313b7ae24 100644
--- a/solenv/bin/modules/installer/systemactions.pm
+++ b/solenv/bin/modules/installer/systemactions.pm
@@ -292,9 +292,14 @@ sub copy_one_file
{
my ($source, $dest) = @_;
- my ($returnvalue, $infoline);
+ my ($returnvalue, $infoline, $copyreturn);
- my $copyreturn = copy($source, $dest);
+ if ( -l $source ) {
+ $copyreturn = symlink(readlink("$source"), "$dest");
+ }
+ else {
+ $copyreturn = copy($source, $dest);
+ }
if ($copyreturn)
{