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 c062d02..253650d 100644 (file)
@@ -15,7 +15,7 @@ $GLOBALS['phorkie']['cfg'] = array(
         'public'    => '%BASEURL%' . 'repos/git/',
         'private'   => null,
     ),
         'public'    => '%BASEURL%' . 'repos/git/',
         'private'   => null,
     ),
-    'cachedir'      => __DIR__ . '/cache/',
+    'cachedir'      => $phorkieDir . 'cache/',
     'gitdir'        => $wwwDir . 'repos/git/',
     'workdir'       => $wwwDir . 'repos/work/',
     'tpl'           => __DIR__ . '/templates/',
     'gitdir'        => $wwwDir . 'repos/git/',
     'workdir'       => $wwwDir . 'repos/work/',
     'tpl'           => __DIR__ . '/templates/',
index 81ffdbe..f1b8704 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']['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/';
 //$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/';