Check libsmbclient-php as well as smbclient binary
This commit is contained in:
parent
470bf234c5
commit
fc52327d2c
|
@ -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'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue