Fix Decidim rake secret
This commit is contained in:
parent
91c413ecbf
commit
b2b2c12cdf
@ -22,7 +22,7 @@ lxchelper extract decidim /srv/decidim-app/config /srv/decidim/decidim_conf
|
|||||||
# Configure Decidim
|
# Configure Decidim
|
||||||
mkdir -p /srv/decidim/decidim_data/storage /srv/decidim/decidim_data/uploads
|
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
|
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/environments/production.rb /srv/decidim/decidim_conf/environments/production.rb
|
||||||
cp decidim_conf/initializers/decidim.rb /srv/decidim/decidim_conf/initializers/decidim.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
|
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'
|
envsubst <adminpwd.rb | lxc-execute decidim -- sh -c 'cd /srv/decidim-app; bin/rails console -e production'
|
||||||
|
|
||||||
# Install config update script
|
# 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
|
# Stop services required for setup
|
||||||
service lxc-decidim-postgres stop
|
service lxc-decidim-postgres stop
|
||||||
|
Loading…
Reference in New Issue
Block a user