use command -v to detect if smbclient exists
This commit is contained in:
parent
14a5381977
commit
c6976d89a6
|
@ -140,7 +140,7 @@ class SMB extends \OC\Files\Storage\StreamWrapper{
|
|||
*/
|
||||
public static function checkDependencies() {
|
||||
if (function_exists('shell_exec')) {
|
||||
$output = shell_exec('which smbclient');
|
||||
$output=shell_exec('command -v smbclient 2> /dev/null');
|
||||
if (!empty($output)) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue