Skip to content

Commit

Permalink
Introduce OWNCLOUD_CONFIG_DIR environment variable
Browse files Browse the repository at this point in the history
This allosw to change the config location.
  • Loading branch information
bachp committed May 12, 2017
1 parent 639dafd commit e414515
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 e414515

Please sign in to comment.