From 5bd1f5e97c2376bf6c9f2a01dce1e2ea16edeff5 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 2 Apr 2021 19:10:27 +0200 Subject: [PATCH] Fix Decidim config population during clean install --- lxc-apps/decidim/install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lxc-apps/decidim/install.sh b/lxc-apps/decidim/install.sh index 92e84c9..c29e84f 100755 --- a/lxc-apps/decidim/install.sh +++ b/lxc-apps/decidim/install.sh @@ -25,8 +25,10 @@ install -o 108080 -g 108080 -m 700 -d ${DECIDIM_CONF}/initializers install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/migrate install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/storage install -o 108080 -g 108080 -m 700 -d ${DECIDIM_DATA}/uploads -export DECIDIM_SECRET=$(spoc-container exec -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; bin/rake secret') install -o 108080 -g 108080 -m 640 decidim_conf/initializers/decidim.rb ${DECIDIM_CONF}/initializers/decidim.rb +# application.yml is installed twice because it needs to exist when the container is executed +envsubst