1
0
Fork 0

fixed issue #486

pull/491/head
Brikou CARRE 2012-03-23 08:53:32 +01:00
parent 4917a6648f
commit 3ae860f485
1 changed files with 8 additions and 1 deletions

View File

@ -169,7 +169,14 @@ class LibraryInstaller implements InstallerInterface
}
file_put_contents($link, $this->generateWindowsProxyCode($bin, $link));
} else {
symlink($bin, $link);
try {
// under linux symlinks are not always supported for example
// when using it in smbfs mounted folder
symlink($bin, $link);
} catch (\ErrorException $e) {
file_put_contents($link, $this->generateUnixyProxyCode($bin, $link));
}
}
chmod($link, 0755);
}