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