[DRE-commits] [redmine] 28/39: postinst: fix db:migrate call

Antonio Terceiro terceiro at moszumanska.debian.org
Tue Dec 8 12:56:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository redmine.

commit 458b81c98f60d276e3c00a7cd4a6214f59e517f5
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Mon Sep 28 19:59:46 2015 -0300

    postinst: fix db:migrate call
---
 debian/postinst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/postinst b/debian/postinst
index 9579022..8eb0191 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -49,7 +49,7 @@ manage_instance() {
   dbc_go redmine/instances/$instance "$@"
 
   cd /usr/share/redmine
-  su redmine -c "bundle exec rake db:migrate REDMINE_INSTANCE=$instance SCHEMA=/dev/null"
+  su www-data -s /bin/sh -c "bundle exec rake db:migrate REDMINE_INSTANCE=$instance SCHEMA=/dev/null"
 }
 
 remove_instance() {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/redmine.git



More information about the Pkg-ruby-extras-commits mailing list