From aaa0ee687d465e7411b70d478ae62a749a74890d Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 18 Feb 2016 16:45:11 -0300 Subject: [PATCH] debian-package: run setup on postinst --- debian/dbinstall | 2 -- debian/dbupgrade | 2 -- debian/noosfero.postinst | 2 ++ 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/debian/dbinstall b/debian/dbinstall index 7ca88dd..8fbe28b 100755 --- a/debian/dbinstall +++ b/debian/dbinstall @@ -5,8 +5,6 @@ set -e # dbconfig-common uses "pgsql", but we want "postgresql" sed -i -e 's/adapter: pgsql/adapter: postgresql/' /etc/noosfero/database.yml -/etc/init.d/noosfero setup - cd /usr/share/noosfero && su noosfero -c "rake db:schema:load RAILS_ENV=production" cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null" cd /usr/share/noosfero && su noosfero -c "rake db:data:minimal RAILS_ENV=production" diff --git a/debian/dbupgrade b/debian/dbupgrade index 653cbf9..04aa575 100755 --- a/debian/dbupgrade +++ b/debian/dbupgrade @@ -2,7 +2,5 @@ set -e -/etc/init.d/noosfero setup - cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null" diff --git a/debian/noosfero.postinst b/debian/noosfero.postinst index 9d3ac26..36b2721 100644 --- a/debian/noosfero.postinst +++ b/debian/noosfero.postinst @@ -68,6 +68,8 @@ if [ ! -z "$RET" ]; then export NOOSFERO_DOMAIN="$RET" fi +/etc/init.d/noosfero setup + # dbconfig-common magic . /usr/share/dbconfig-common/dpkg/postinst dbc_go noosfero $@ -- libgit2 0.21.2