]> source.dussan.org Git - nextcloud-server.git/commitdiff
no files external for SMB on windows
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 15 Aug 2013 10:00:02 +0000 (12:00 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Fri, 16 Aug 2013 15:34:40 +0000 (17:34 +0200)
apps/files_external/lib/config.php

index fec5e87125b1a9618de9abc2dd4c50c30e2e1188..cc57ea8c3f76725c062f2a1e7b8cebd5895f03e2 100755 (executable)
@@ -88,14 +88,18 @@ class OC_Mount_Config {
                                'root' => '&Root',
                                'secure' => '!Secure ftps://'));
 
-               if(OC_Mount_Config::checksmbclient()) $backends['\OC\Files\Storage\SMB']=array(
-                       'backend' => 'SMB / CIFS',
-                       'configuration' => array(
-                               'host' => 'URL',
-                               'user' => 'Username',
-                               'password' => '*Password',
-                               'share' => 'Share',
-                               'root' => '&Root'));
+               if (!OC_Util::runningOnWindows()) {
+                       if (OC_Mount_Config::checksmbclient()) {
+                               $backends['\OC\Files\Storage\SMB'] = array(
+                                       'backend' => 'SMB / CIFS',
+                                       'configuration' => array(
+                                               'host' => 'URL',
+                                               'user' => 'Username',
+                                               'password' => '*Password',
+                                               'share' => 'Share',
+                                               'root' => '&Root'));
+                       }
+               }
 
                $backends['\OC\Files\Storage\DAV']=array(
                        'backend' => 'ownCloud / WebDAV',
@@ -431,8 +435,10 @@ class OC_Mount_Config {
        public static function checkDependencies() {
                $l= new OC_L10N('files_external');
                $txt='';
-               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_Util::runningOnWindows()) {
+                       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()) {
                        $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 />';