Commit aaa0ee687d465e7411b70d478ae62a749a74890d

Authored by Rodrigo Souto
1 parent a0b02c3d

debian-package: run setup on postinst

debian/dbinstall
... ... @@ -5,8 +5,6 @@ set -e
5 5 # dbconfig-common uses "pgsql", but we want "postgresql"
6 6 sed -i -e 's/adapter: pgsql/adapter: postgresql/' /etc/noosfero/database.yml
7 7  
8   -/etc/init.d/noosfero setup
9   -
10 8 cd /usr/share/noosfero && su noosfero -c "rake db:schema:load RAILS_ENV=production"
11 9 cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null"
12 10 cd /usr/share/noosfero && su noosfero -c "rake db:data:minimal RAILS_ENV=production"
... ...
debian/dbupgrade
... ... @@ -2,7 +2,5 @@
2 2  
3 3 set -e
4 4  
5   -/etc/init.d/noosfero setup
6   -
7 5 cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null"
8 6  
... ...
debian/noosfero.postinst
... ... @@ -68,6 +68,8 @@ if [ ! -z "$RET" ]; then
68 68 export NOOSFERO_DOMAIN="$RET"
69 69 fi
70 70  
  71 +/etc/init.d/noosfero setup
  72 +
71 73 # dbconfig-common magic
72 74 . /usr/share/dbconfig-common/dpkg/postinst
73 75 dbc_go noosfero $@
... ...