Skip to content

Commit

Permalink
Merge pull request #27874 from bachp/config-env-var
Browse files Browse the repository at this point in the history
Introduce OWNCLOUD_CONFIG_DIR environment variable
  • Loading branch information
Vincent Petry authored Jun 21, 2017
2 parents 47e6b0d + e414515 commit 5573f77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ public static function initPaths() {
self::$configDir = OC::$SERVERROOT . '/' . PHPUNIT_CONFIG_DIR . '/';
} elseif(defined('PHPUNIT_RUN') and PHPUNIT_RUN and is_dir(OC::$SERVERROOT . '/tests/config/')) {
self::$configDir = OC::$SERVERROOT . '/tests/config/';
} elseif($dir = getenv('OWNCLOUD_CONFIG_DIR')) {
self::$configDir = rtrim($dir, '/') . '/';
} else {
self::$configDir = OC::$SERVERROOT . '/config/';
}
Expand Down

0 comments on commit 5573f77

Please sign in to comment.