[med-svn] [Git][med-team/orthanc][master] 4 commits: Added the "orthanc-restart-trigger" dpkg trigger. Closes: #1003314
Sebastien Jodogne (@jodogne-guest)
gitlab at salsa.debian.org
Fri Jan 14 15:43:45 GMT 2022
Sebastien Jodogne pushed to branch master at Debian Med / orthanc
Commits:
4ba881a9 by jodogne-guest at 2022-01-14T15:00:58+01:00
Added the "orthanc-restart-trigger" dpkg trigger. Closes: #1003314
- - - - -
d70f5c56 by jodogne-guest at 2022-01-14T15:24:22+01:00
lintian fix: replace interest by interest-await in orthanc-restart-trigger
- - - - -
9772ec0b by jodogne-guest at 2022-01-14T15:51:32+01:00
fix d/postinst
- - - - -
f0a6d3b5 by jodogne-guest at 2022-01-14T16:43:00+01:00
Upload to unstable
- - - - -
3 changed files:
- debian/changelog
- + debian/orthanc.triggers
- debian/postinst
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+orthanc (1.9.7+dfsg-6) unstable; urgency=medium
+
+ * Added the "orthanc-restart-trigger" dpkg trigger. Closes: #1003314
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com> Fri, 14 Jan 2022 14:53:09 +0100
+
orthanc (1.9.7+dfsg-5) unstable; urgency=medium
* Fix generation of mandatory locale en_US.UTF-8 on Debian
=====================================
debian/orthanc.triggers
=====================================
@@ -0,0 +1,4 @@
+# This dpkg trigger is used to restart the Orthanc server, and is activated
+# by the plugin packages. As restarting Orthanc after the installation of a
+# plugin is crucial, we use "interest-await" instead of "interest-noawait".
+interest-await orthanc-restart-trigger
=====================================
debian/postinst
=====================================
@@ -52,6 +52,27 @@ case $1 in
fi
;;
+ triggered)
+ if [ "$2" = "orthanc-restart-trigger" ] ; then
+ echo "orthanc-restart-trigger: restarting the Orthanc service" >&2
+ # Restart the Orthanc service if the "orthanc-restart-trigger" dpkg trigger
+ # is activated by some of the plugin package (cf. Debian issue #1003314)
+ # https://wiki.debian.org/DpkgTriggers
+ # https://stackoverflow.com/a/15276537
+ # https://web.archive.org/web/20111022012105/http://www.seanius.net/blog/2009/09/dpkg-triggers-howto/
+ if [ -x /etc/init.d/orthanc ]; then
+ if which invoke-rc.d >/dev/null 2>&1; then
+ invoke-rc.d orthanc restart
+ else
+ /etc/init.d/orthanc restart
+ fi
+ fi
+ else
+ echo "unknown trigger in orthanc.postinst: $2" >&2
+ exit 1
+ fi
+ ;;
+
abort-upgrade|abort-remove|abort-deconfigure)
;;
View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/9d38e81d1f68c7b770bb081cfae70a2e356a9e19...f0a6d3b51d2b208dc07cb3dec3902bc8cf2c380d
--
View it on GitLab: https://salsa.debian.org/med-team/orthanc/-/compare/9d38e81d1f68c7b770bb081cfae70a2e356a9e19...f0a6d3b51d2b208dc07cb3dec3902bc8cf2c380d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220114/e14531c1/attachment-0001.htm>
More information about the debian-med-commit
mailing list