File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 5050## This is to make sure plugins that include files
5151## from CORE_DIR work properly
5252for i in "${CORE_DIR[@]}"; do
53+ if [[ -L /config/dokuwiki/"${i}" ]] && [[ $(readlink -f /config/dokuwiki/"${i}") != /app/www/public/"${i}" ]]; then
54+ rm /config/dokuwiki/"${i}"
55+ fi
5356 if [[ ! -L /config/dokuwiki/"${i}" ]]; then
5457 ln -s /app/www/public/"${i}" /config/dokuwiki/"${i}"
5558 fi
@@ -79,6 +82,9 @@ if [[ -f /config/dokuwiki/conf/local.php ]]; then
7982 echo "Set 'savedir' to absolute path in the container"
8083 echo "\$conf['savedir'] = '/app/www/public/data';" >> /config/dokuwiki/conf/local.php
8184 fi
85+
86+ # replace old app path
87+ sed -i 's|/app/dokuwiki|/app/www/public|g' /config/dokuwiki/conf/local.php
8288else
8389 echo "Go to http://IP-ADDRESS:PORT/install.php to configure your install then restart your container when finished to remove install.php"
8490fi
You can’t perform that action at this time.
0 commit comments