Check libsmbclient-php as well as smbclient binary

This commit is contained in:
Robin McCorkell 2016-01-06 11:51:56 +00:00 committed by Morris Jobke
parent 470bf234c5
commit fc52327d2c
1 changed files with 4 additions and 2 deletions

View File

@ -302,7 +302,9 @@ class SMB extends Common {
* check if smbclient is installed * check if smbclient is installed
*/ */
public static function checkDependencies() { public static function checkDependencies() {
$smbClientExists = (bool)\OC_Helper::findBinaryPath('smbclient'); return (
return $smbClientExists ? true : array('smbclient'); (bool)\OC_Helper::findBinaryPath('smbclient')
|| Server::NativeAvailable()
) ? true : ['smbclient'];
} }
} }