Fix Decidim rake secret

This commit is contained in:
Disassembler 2019-12-18 10:55:56 +01:00
parent 91c413ecbf
commit b2b2c12cdf
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -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 <decidim_conf/application.yml >/srv/decidim/decidim_conf/application.yml
@ -36,7 +36,7 @@ export DECIDIM_ADMIN_PWD=$(head -c 12 /dev/urandom | base64 | tr -d '+/=')
envsubst <adminpwd.rb | lxc-execute decidim -- sh -c 'cd /srv/decidim-app; bin/rails console -e production'
# Install config update script
cp update-conf.sh /srv/decidim/update-conf.sh
# TODO: cp update-conf.sh /srv/decidim/update-conf.sh
# Stop services required for setup
service lxc-decidim-postgres stop