Skip to content
Snippets Groups Projects
Commit 1a35105a authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XDOCKER-41: Docker image should enable filesystem storage for deleted document

XDOCKER-40: Docker image use the wrong FS attachments setup
parent bad5bbe6
No related branches found
No related tags found
No related merge requests found
......@@ -92,9 +92,13 @@ function configure() {
echo ' Using filesystem-based attachments...'
xwiki_set_cfg 'xwiki.store.attachment.hint' 'file'
xwiki_set_cfg 'xwiki.store.attachment.versioning.hint' 'file'
xwiki_set_cfg 'xwiki.store.attachment.recyclebin.content.hint' 'file'
<% if (xwikiVersion.startsWith('8.'))
print ''' xwiki_set_cfg 'xwiki.store.attachment.recyclebin.hint' 'file'
'''
else if (xwikiVersion.startsWith('9.'))print ''' xwiki_set_cfg 'xwiki.store.attachment.recyclebin.content.hint' 'file'
echo ' Using filesystem-based deleted documents...'
xwiki_set_cfg 'xwiki.store.recyclebin.content.hint' 'file'
'''%>
echo ' Generating authentication validation and encryption keys...'
xwiki_set_cfg 'xwiki.authentication.validationKey' "\$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
xwiki_set_cfg 'xwiki.authentication.encryptionKey' "\$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.