[DRE-commits] [redmine] 01/02: Reload all Passenger instances

Marc Dequènes duck at moszumanska.debian.org
Wed Nov 1 08:17:59 UTC 2017


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

duck pushed a commit to branch unnecessary_default_instance
in repository redmine.

commit bfdbfc8957fb4c0ea8486dbb34eaf76a4c5e97da
Author: Marc Dequènes (Duck) <Duck at DuckCorp.org>
Date:   Wed Nov 1 16:43:05 2017 +0900

    Reload all Passenger instances
    
    The 'default' instance is no more compulsory to configure the
    package, fixing #879104.
---
 debian/changelog | 1 +
 debian/postinst  | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 032715d..ba1a0cd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ redmine (3.4.2-1) UNRELEASED; urgency=medium
   * Use HTTPS URLs in Debian metadata.
   * Priority 'extra' is deprecated, switch to 'optional'.
   * Bumped Standards-Version.
+  * Reload all Passenger instances (Closes: #879104).
 
   [ Lucas Kanashiro ]
   * debian/copyright: fix path of redcloth3.rb file
diff --git a/debian/postinst b/debian/postinst
old mode 100644
new mode 100755
index 7ce4e31..b31be1b
--- a/debian/postinst
+++ b/debian/postinst
@@ -81,6 +81,9 @@ manage_instance() {
   db_get redmine/instances/$instance/default-language || true
   REDMINE_LANG="${RET:-en}"
   su www-data -s /bin/sh -c "REDMINE_INSTANCE=$instance REDMINE_LANG=$REDMINE_LANG bundle exec rake redmine:load_default_data"
+
+  # tell application to restart (works with passenger)
+  su www-data -s /bin/sh -c "touch /var/lib/redmine/$instance/tmp/restart.txt"
 }
 
 db_get redmine/current-instances || true
@@ -89,7 +92,4 @@ for inst in $instances; do
   manage_instance "$inst" "$@"
 done
 
-# tell application to restart (works with passenger)
-su www-data -s /bin/sh -c "touch /usr/share/redmine/tmp/restart.txt"
-
 ##DEBHELPER##

-- 
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