add cachedir setting to dist and default config file
authorChristian Weiske <cweiske@cweiske.de>
Wed, 8 Jul 2015 19:44:08 +0000 (21:44 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 8 Jul 2015 19:44:08 +0000 (21:44 +0200)
data/config.default.php
data/config.php.dist

index c062d025ac9efcf4502d501762a8386dd4b738d4..253650d6eae3d2c26317205ec2e37f278c1f6821 100644 (file)
@@ -15,7 +15,7 @@ $GLOBALS['phorkie']['cfg'] = array(
         'public'    => '%BASEURL%' . 'repos/git/',
         'private'   => null,
     ),
-    'cachedir'      => __DIR__ . '/cache/',
+    'cachedir'      => $phorkieDir . 'cache/',
     'gitdir'        => $wwwDir . 'repos/git/',
     'workdir'       => $wwwDir . 'repos/work/',
     'tpl'           => __DIR__ . '/templates/',
index 81ffdbe3be2e278f7e222711c2ccbf0d16cbe8d2..f1b87048f55663d42284bfe252890c50cf25b3f2 100644 (file)
@@ -2,6 +2,7 @@
 //$GLOBALS['phorkie']['cfg']['baseurl']  = '/';
 //$GLOBALS['phorkie']['cfg']['gitdir']  = '/var/cache/git/paste/git/';
 //$GLOBALS['phorkie']['cfg']['workdir'] = '/var/cache/git/paste/work/';
+//$GLOBALS['phorkie']['cfg']['cachedir'] = '/var/cache/phorkie/';
 //$GLOBALS['phorkie']['cfg']['git']['public'] = 'git://bogo/git/paste/';
 //$GLOBALS['phorkie']['cfg']['git']['private'] = 'ssh://git@bogo:paste/';
 //$GLOBALS['phorkie']['cfg']['elasticsearch'] = 'http://localhost:9200/phorkie/';