]> source.dussan.org Git - nextcloud-server.git/commitdiff
Read configuratons for external filesystem test from a private place.
authorThomas Mueller <thomas.mueller@tmit.eu>
Thu, 6 Jun 2013 22:04:46 +0000 (00:04 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Thu, 6 Jun 2013 22:04:46 +0000 (00:04 +0200)
This will help not to accidentially push private data and enable testing on our ci server.

apps/files_external/tests/config.php

index 1d4f30c713dd00e098172da16be1a81453f0754f..bac594b485f36d25017f8cdea63ba72c30de6990 100644 (file)
@@ -1,4 +1,13 @@
 <?php
+
+// in case there are private configurations in the users home -> use them
+$privateConfigFile = $_SERVER['HOME'] . '/owncloud-extfs-test-config.php';
+if (file_exists($privateConfigFile)) {
+       $config = include($privateConfigFile);
+       return $config;
+}
+
+// this is now more a template now for your private configurations
 return array(
        'ftp'=>array(
                'run'=>false,