[DRE-commits] [redmine] 01/01: debian/postinst: touch restart.txt only once
Antonio Terceiro
terceiro at moszumanska.debian.org
Sun Nov 13 13:33:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository redmine.
commit 554bb5058b6ec464e04289c62df722537c389a29
Author: Antonio Terceiro <terceiro at debian.org>
Date: Sun Nov 13 11:25:42 2016 -0200
debian/postinst: touch restart.txt only once
otherwise with multiple instances we might get multiple restarts for
each instance.
---
debian/postinst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/debian/postinst b/debian/postinst
index 6ac39ea..7ce4e31 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -81,9 +81,6 @@ 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 tmp/restart.txt"
}
db_get redmine/current-instances || true
@@ -92,4 +89,7 @@ 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