Skip to content

Commit 8095eef

Browse files
committed
set 'savedir' to path in container
1 parent cd59ad3 commit 8095eef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

root/etc/cont-init.d/50-config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ if [[ -f /config/dokuwiki/conf/local.php ]]; then
6767
sed -i -e 's/#location/location/g' \
6868
/config/nginx/site-confs/default && \
6969
echo "Existing install found install.php not available"
70+
71+
# when default savedir stil active: change it to the path IN the container
72+
if ! grep -q "^\$conf\[\'savedir\'\]\s*\=" /config/dokuwiki/conf/local.php; then
73+
echo "Set 'savedir' to absolute path in the container"
74+
echo "\$conf['savedir'] = '/app/dokuwiki/data';" >> /config/dokuwiki/conf/local.php
75+
fi
7076
else
7177
echo "Go to http://IP-ADDRESS:PORT/install.php to configure your install then restart your container when finished to remove install.php"
7278
fi

0 commit comments

Comments
 (0)