mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
use command -v to detect if smbclient exists
This commit is contained in:
parent
14a5381977
commit
c6976d89a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue