From 51ea5529a3de85fb17518898892498e1337a88b7 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 8 Jul 2015 21:44:08 +0200 Subject: [PATCH] add cachedir setting to dist and default config file --- data/config.default.php | 2 +- data/config.php.dist | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/data/config.default.php b/data/config.default.php index c062d02..253650d 100644 --- a/data/config.default.php +++ b/data/config.default.php @@ -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/', diff --git a/data/config.php.dist b/data/config.php.dist index 81ffdbe..f1b8704 100644 --- a/data/config.php.dist +++ b/data/config.php.dist @@ -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/'; -- 2.30.2