Commit aaa0ee687d465e7411b70d478ae62a749a74890d
1 parent
a0b02c3d
Exists in
staging
and in
32 other branches
debian-package: run setup on postinst
Showing
3 changed files
with
2 additions
and
4 deletions
Show diff stats
debian/dbinstall
@@ -5,8 +5,6 @@ set -e | @@ -5,8 +5,6 @@ set -e | ||
5 | # dbconfig-common uses "pgsql", but we want "postgresql" | 5 | # dbconfig-common uses "pgsql", but we want "postgresql" |
6 | sed -i -e 's/adapter: pgsql/adapter: postgresql/' /etc/noosfero/database.yml | 6 | sed -i -e 's/adapter: pgsql/adapter: postgresql/' /etc/noosfero/database.yml |
7 | 7 | ||
8 | -/etc/init.d/noosfero setup | ||
9 | - | ||
10 | cd /usr/share/noosfero && su noosfero -c "rake db:schema:load RAILS_ENV=production" | 8 | cd /usr/share/noosfero && su noosfero -c "rake db:schema:load RAILS_ENV=production" |
11 | cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null" | 9 | cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null" |
12 | cd /usr/share/noosfero && su noosfero -c "rake db:data:minimal RAILS_ENV=production" | 10 | cd /usr/share/noosfero && su noosfero -c "rake db:data:minimal RAILS_ENV=production" |
debian/dbupgrade
debian/noosfero.postinst
@@ -68,6 +68,8 @@ if [ ! -z "$RET" ]; then | @@ -68,6 +68,8 @@ if [ ! -z "$RET" ]; then | ||
68 | export NOOSFERO_DOMAIN="$RET" | 68 | export NOOSFERO_DOMAIN="$RET" |
69 | fi | 69 | fi |
70 | 70 | ||
71 | +/etc/init.d/noosfero setup | ||
72 | + | ||
71 | # dbconfig-common magic | 73 | # dbconfig-common magic |
72 | . /usr/share/dbconfig-common/dpkg/postinst | 74 | . /usr/share/dbconfig-common/dpkg/postinst |
73 | dbc_go noosfero $@ | 75 | dbc_go noosfero $@ |