From fcc4ac50c66ea30e44a9b5ddea34a4cccd51029a Mon Sep 17 00:00:00 2001 From: Thomas Mortagne <thomas.mortagne@gmail.com> Date: Wed, 29 Nov 2017 15:53:19 +0100 Subject: [PATCH] XDOCKER-41: Docker image should enable filesystem storage for deleted document --- 9/mysql-tomcat/xwiki/docker-entrypoint.sh | 2 ++ 9/postgres-tomcat/xwiki/docker-entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/9/mysql-tomcat/xwiki/docker-entrypoint.sh b/9/mysql-tomcat/xwiki/docker-entrypoint.sh index 249fa72..4261f22 100755 --- a/9/mysql-tomcat/xwiki/docker-entrypoint.sh +++ b/9/mysql-tomcat/xwiki/docker-entrypoint.sh @@ -93,6 +93,8 @@ function configure() { 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' + 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)" diff --git a/9/postgres-tomcat/xwiki/docker-entrypoint.sh b/9/postgres-tomcat/xwiki/docker-entrypoint.sh index 249fa72..4261f22 100755 --- a/9/postgres-tomcat/xwiki/docker-entrypoint.sh +++ b/9/postgres-tomcat/xwiki/docker-entrypoint.sh @@ -93,6 +93,8 @@ function configure() { 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' + 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)" -- GitLab