[med-svn] [Git][med-team/orthanc-gdcm][master] 3 commits: replace explict restart of Orthanc in postinst/postrm by orthanc-restart-trigger
Sebastien Jodogne (@jodogne-guest)
gitlab at salsa.debian.org
Sun Jan 16 16:19:42 GMT 2022
Sebastien Jodogne pushed to branch master at Debian Med / orthanc-gdcm
Commits:
cd509ffa by jodogne-guest at 2022-01-16T17:12:02+01:00
replace explict restart of Orthanc in postinst/postrm by orthanc-restart-trigger
- - - - -
926c4099 by jodogne-guest at 2022-01-16T17:13:07+01:00
fix d/postinst
- - - - -
e6bc675f by jodogne-guest at 2022-01-16T17:19:03+01:00
Upload to unstable
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/postinst
- − debian/postrm
- + debian/triggers
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+orthanc-gdcm (1.4-3) unstable; urgency=medium
+
+ * Replace explicit restart of Orthanc by orthanc-restart-trigger
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com> Sun, 16 Jan 2022 17:10:10 +0100
+
orthanc-gdcm (1.4-2) unstable; urgency=medium
* Upload to unstable after freeze
=====================================
debian/control
=====================================
@@ -20,7 +20,7 @@ Package: orthanc-gdcm
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
- orthanc (>= 1.7.0)
+ orthanc (>= 1.9.7+dfsg-6)
Built-Using: ${orthancframework:Built-Using}
Description: DICOM transcoder/decoder for Orthanc using GDCM (notably for JPEG2k)
This package installs a plugin for Orthanc, the lightweight, RESTful
=====================================
debian/postinst
=====================================
@@ -7,23 +7,13 @@ case $1 in
# Configure the permissions of the configuration file
chown orthanc:orthanc /etc/orthanc/gdcm.json
chmod 0664 /etc/orthanc/gdcm.json
-
- # Restart the Orthanc service
- # https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
- 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
- ;;
+ ;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
- echo "prerm called with unknown argument \`$1'" >&2
+ echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
=====================================
debian/postrm deleted
=====================================
@@ -1,27 +0,0 @@
-#!/bin/sh
-
-set -e
-
-case $1 in
- purge|remove|upgrade)
- # Restart the Orthanc service
- # https://www.debian.org/doc/debian-policy/ch-opersys.html#s9.3.3.2
- 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
- ;;
-
- failed-upgrade|abort-install|abort-upgrade|disappear)
- ;;
-
- *)
- echo "prerm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
=====================================
debian/triggers
=====================================
@@ -0,0 +1,3 @@
+# Restart the Orthanc service with dpkg trigger
+# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003314
+activate-await orthanc-restart-trigger
View it on GitLab: https://salsa.debian.org/med-team/orthanc-gdcm/-/compare/165197d7471e9ab4e71bf5728243785c21211447...e6bc675f3357d7551a995b6ceef134fdbc533f24
--
View it on GitLab: https://salsa.debian.org/med-team/orthanc-gdcm/-/compare/165197d7471e9ab4e71bf5728243785c21211447...e6bc675f3357d7551a995b6ceef134fdbc533f24
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/20220116/5bc9a755/attachment-0001.htm>
More information about the debian-med-commit
mailing list