Skip to content

Commit 50812b5

Browse files
authored
Merge pull request #41 from MachX428/persist-smileys-interwiki
Persist smileys/local and interwiki image folders outside of container
2 parents b440b8b + 036fa1c commit 50812b5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

readme-vars.yml

100644100755
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ app_setup_block: |
4040
Upon first install go to `http://$IP:$PORT/install.php` once you have completed the setup, restart the container, login as admin and set "Use nice URLs" in the `admin/Configuration Settings` panel to `.htaccess` and tick `Use slash as namespace separator in URLs` to enable [nice URLs](https://www.dokuwiki.org/rewrite) you will find the webui at `http://$IP:$PORT/`, for more info see [{{ project_name|capitalize }}]({{ project_url }})
4141
# changelog
4242
changelogs:
43+
- { date: "11.13.22:", desc: "Move lib/images/smileys/local and lib/images/interwiki outside of the container for user defined smiley and interwiki icon support." }
4344
- { date: "20.08.22:", desc: "Rebasing to alpine 3.15 with php8. Restructure nginx configs ([see changes announcement](https://info.linuxserver.io/issues/2022-08-20-nginx-base))." }
4445
- { date: "20.07.21:", desc: "Add php7-dom, fixes minor issues in sprintdoc template." }
4546
- { date: "15.04.21:", desc: "Add `vendor` folder to deny list." }

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

100644100755
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ USER_DIRECTORY=(\
44
"conf" \
55
"data/attic" \
66
"data/index" \
7-
"data/media" \
87
"data/media_attic" \
98
"data/media_meta" \
9+
"data/media" \
1010
"data/meta" \
1111
"data/pages" \
12+
"lib/images/interwiki" \
13+
"lib/images/smileys/local" \
1214
"lib/plugins" \
1315
"lib/tpl"
1416
)
@@ -19,11 +21,13 @@ CORE_DIR=(\
1921
)
2022

2123
## Make data directories
22-
[[ ! -d /config/dokuwiki/data ]]
24+
if [[ ! -d /config/dokuwiki/data ]]; then
2325
mkdir -p /config/dokuwiki/data
26+
fi
2427

25-
[[ ! -d /config/dokuwiki/lib/ ]]
26-
mkdir -p /config/dokuwiki/lib/
28+
if [[ ! -d /config/dokuwiki/lib/images/smileys ]]; then
29+
mkdir -p /config/dokuwiki/lib/images/smileys/local
30+
fi
2731

2832
## Move user folders to persistent storage
2933
for i in "${USER_DIRECTORY[@]}"; do

0 commit comments

Comments
 (0)