no files external for SMB on windows
This commit is contained in:
parent
680ac48856
commit
05549884c6
|
@ -93,14 +93,18 @@ class OC_Mount_Config {
|
||||||
'root' => '&Root',
|
'root' => '&Root',
|
||||||
'secure' => '!Secure ftps://'));
|
'secure' => '!Secure ftps://'));
|
||||||
|
|
||||||
if(OC_Mount_Config::checksmbclient()) $backends['\OC\Files\Storage\SMB']=array(
|
if (!OC_Util::runningOnWindows()) {
|
||||||
'backend' => 'SMB / CIFS',
|
if (OC_Mount_Config::checksmbclient()) {
|
||||||
'configuration' => array(
|
$backends['\OC\Files\Storage\SMB'] = array(
|
||||||
'host' => 'URL',
|
'backend' => 'SMB / CIFS',
|
||||||
'user' => 'Username',
|
'configuration' => array(
|
||||||
'password' => '*Password',
|
'host' => 'URL',
|
||||||
'share' => 'Share',
|
'user' => 'Username',
|
||||||
'root' => '&Root'));
|
'password' => '*Password',
|
||||||
|
'share' => 'Share',
|
||||||
|
'root' => '&Root'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(OC_Mount_Config::checkcurl()) $backends['\OC\Files\Storage\DAV']=array(
|
if(OC_Mount_Config::checkcurl()) $backends['\OC\Files\Storage\DAV']=array(
|
||||||
'backend' => 'ownCloud / WebDAV',
|
'backend' => 'ownCloud / WebDAV',
|
||||||
|
@ -444,8 +448,10 @@ class OC_Mount_Config {
|
||||||
public static function checkDependencies() {
|
public static function checkDependencies() {
|
||||||
$l= new OC_L10N('files_external');
|
$l= new OC_L10N('files_external');
|
||||||
$txt='';
|
$txt='';
|
||||||
if(!OC_Mount_Config::checksmbclient()) {
|
if (!OC_Util::runningOnWindows()) {
|
||||||
$txt.=$l->t('<b>Warning:</b> "smbclient" is not installed. Mounting of CIFS/SMB shares is not possible. Please ask your system administrator to install it.').'<br />';
|
if(!OC_Mount_Config::checksmbclient()) {
|
||||||
|
$txt.=$l->t('<b>Warning:</b> "smbclient" is not installed. Mounting of CIFS/SMB shares is not possible. Please ask your system administrator to install it.').'<br />';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(!OC_Mount_Config::checkphpftp()) {
|
if(!OC_Mount_Config::checkphpftp()) {
|
||||||
$txt.=$l->t('<b>Warning:</b> The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'<br />';
|
$txt.=$l->t('<b>Warning:</b> The FTP support in PHP is not enabled or installed. Mounting of FTP shares is not possible. Please ask your system administrator to install it.').'<br />';
|
||||||
|
|
Loading…
Reference in New Issue