From b2b2c12cdf38fbbc0ce1854cfbd8859e1b8c38c7 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Wed, 18 Dec 2019 10:55:56 +0100 Subject: [PATCH] Fix Decidim rake secret --- lxc-apps/decidim/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxc-apps/decidim/install.sh b/lxc-apps/decidim/install.sh index dab3faf..58362b2 100755 --- a/lxc-apps/decidim/install.sh +++ b/lxc-apps/decidim/install.sh @@ -22,7 +22,7 @@ lxchelper extract decidim /srv/decidim-app/config /srv/decidim/decidim_conf # Configure Decidim mkdir -p /srv/decidim/decidim_data/storage /srv/decidim/decidim_data/uploads chown 108080:108080 /srv/decidim/decidim_data/storage /srv/decidim/decidim_data/uploads -export DECIDIM_SECRET=$(lxc-execute decidim -- rake secret) +export DECIDIM_SECRET=$(lxc-execute -u 8080 -g 8080 decidim -- sh -c 'cd /srv/decidim-app; rake secret') cp decidim_conf/environments/production.rb /srv/decidim/decidim_conf/environments/production.rb cp decidim_conf/initializers/decidim.rb /srv/decidim/decidim_conf/initializers/decidim.rb envsubst /srv/decidim/decidim_conf/application.yml @@ -36,7 +36,7 @@ export DECIDIM_ADMIN_PWD=$(head -c 12 /dev/urandom | base64 | tr -d '+/=') envsubst