mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #21481 from owncloud/ext-smb-dependencies
Check libsmbclient-php as well as smbclient binary
This commit is contained in:
commit
629061d00a
1 changed files with 4 additions and 2 deletions
|
|
@ -302,7 +302,9 @@ class SMB extends Common {
|
|||
* check if smbclient is installed
|
||||
*/
|
||||
public static function checkDependencies() {
|
||||
$smbClientExists = (bool)\OC_Helper::findBinaryPath('smbclient');
|
||||
return $smbClientExists ? true : array('smbclient');
|
||||
return (
|
||||
(bool)\OC_Helper::findBinaryPath('smbclient')
|
||||
|| Server::NativeAvailable()
|
||||
) ? true : ['smbclient'];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue