Skip to content
Snippets Groups Projects
Commit 629061d0 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #21481 from owncloud/ext-smb-dependencies

Check libsmbclient-php as well as smbclient binary
parents f6f492ba fc52327d
No related merge requests found
......@@ -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'];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment