[med-svn] [Git][med-team/orthanc-postgresql][master] 2 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 17:50:14 GMT 2022
Sebastien Jodogne pushed to branch master at Debian Med / orthanc-postgresql
Commits:
f2b68d7d by jodogne-guest at 2022-01-16T18:37:28+01:00
replace explict restart of Orthanc in postinst/postrm by orthanc-restart-trigger
- - - - -
005c180d by jodogne-guest at 2022-01-16T18:49:45+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-postgresql (4.0-5) unstable; urgency=medium
+
+ * Replace explicit restart of Orthanc by orthanc-restart-trigger
+
+ -- Sebastien Jodogne <s.jodogne at gmail.com> Sun, 16 Jan 2022 18:33:58 +0100
+
orthanc-postgresql (4.0-4) unstable; urgency=medium
* Fix FTBFS with PostgreSQL 14. Closes: #997392
=====================================
debian/control
=====================================
@@ -8,7 +8,7 @@ Build-Depends: cmake,
libgtest-dev,
liborthancframework-dev,
libpq-dev,
- orthanc-dev,
+ orthanc-dev (>= 0.9.5),
postgresql-server-dev-all,
uuid-dev,
unzip
@@ -21,7 +21,7 @@ Package: orthanc-postgresql
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends},
- orthanc (>= 0.9.5)
+ orthanc (>= 1.9.7+dfsg-6)
Built-Using: ${orthancframework:Built-Using}
Suggests: postgresql
Description: Plugins to use PostgreSQL as a database back-end to Orthanc
=====================================
debian/postinst
=====================================
@@ -7,23 +7,13 @@ case $1 in
# Configure the permissions of the configuration file
chown orthanc:orthanc /etc/orthanc/postgresql.json
chmod 0664 /etc/orthanc/postgresql.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-postgresql/-/compare/483837bac462bed22983c7622fd04fc1ca205bf7...005c180dfc4456b605373281d91dd141adfcac9a
--
View it on GitLab: https://salsa.debian.org/med-team/orthanc-postgresql/-/compare/483837bac462bed22983c7622fd04fc1ca205bf7...005c180dfc4456b605373281d91dd141adfcac9a
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/d62976b2/attachment-0001.htm>
More information about the debian-med-commit
mailing list