Author: Derick Rethans (derickr)
Date: 2025-04-01T10:23:52+01:00

Commit: 
https://github.com/php/web-wiki/commit/a57f854e0d879bbec0e6b16e13e891b675104f1c
Raw diff: 
https://github.com/php/web-wiki/commit/a57f854e0d879bbec0e6b16e13e891b675104f1c.diff

Allow data dir to be set by environment variable

Changed paths:
  M  dokuwiki/conf/local.php


Diff:

diff --git a/dokuwiki/conf/local.php b/dokuwiki/conf/local.php
index 4c47de64..fd3f9a4d 100755
--- a/dokuwiki/conf/local.php
+++ b/dokuwiki/conf/local.php
@@ -25,6 +25,8 @@
 $conf['breadcrumbs'] = 0;
 $conf['youarehere'] = 1;
 $conf['baseurl'] = getenv('web-wiki-development-setup-baseurl') ?: 
'https://wiki.php.net';
+$conf['savedir'] = getenv('WIKI_DATA_DIR') ?: './data';
+
 $conf['plugin']['smtp']['smtp_host'] = 'mailout.php.net';
 $conf['plugin']['smtp']['smtp_ssl'] = 'tls';
 $conf['plugin']['htmlok']['htmlok'] = 1;

Reply via email to