diff options
author | Jörg Behrmann <behrmann@physik.fu-berlin.de> | 2022-08-26 10:10:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 08:10:54 +0000 |
commit | 998e211836b99cbe3d07e594c3c3d1d4ebea5aae (patch) | |
tree | e62e7a5516aea764922f5fbd8d2a980c2b0b71d6 /debian/matrix-synapse-py3.preinst | |
parent | Move the execution of the retention purge_jobs to the main worker (#13632) (diff) | |
download | synapse-998e211836b99cbe3d07e594c3c3d1d4ebea5aae.tar.xz |
Update debhelper (#13594)
* Update debian packaging to debhelper version 12 Don't call dh_installinit anymore, because it has been deprecated, and use dh_installsystemd instead of dh_systemd_enable for the same reason. Signed-off-by: Jörg Behrmann <behrmann@physik.fu-berlin.de> * Drop preinst script It was used for reasons of interactions of dh_systemd_start and dh_installinit, which have both be deprecated Signed-off-by: Jörg Behrmann <behrmann@physik.fu-berlin.de> * Drop /etc/default file It was no longer being installed. * Remove debian/compat file This is managed by the control file nowadays
Diffstat (limited to 'debian/matrix-synapse-py3.preinst')
-rw-r--r-- | debian/matrix-synapse-py3.preinst | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/debian/matrix-synapse-py3.preinst b/debian/matrix-synapse-py3.preinst deleted file mode 100644 index 4b5612f050..0000000000 --- a/debian/matrix-synapse-py3.preinst +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh -e - -# Attempt to undo some of the braindamage caused by -# https://github.com/matrix-org/package-synapse-debian/issues/18. -# -# Due to reasons [1], the old python2 matrix-synapse package will not stop the -# service when the package is uninstalled. Our maintainer scripts will do the -# right thing in terms of ensuring the service is enabled and unmasked, but -# then do a `systemctl start matrix-synapse`, which of course does nothing - -# leaving the old (py2) service running. -# -# There should normally be no reason for the service to be running during our -# preinst, so we assume that if it *is* running, it's due to that situation, -# and stop it. -# -# [1] dh_systemd_start doesn't do anything because it sees that there is an -# init.d script with the same name, so leaves it to dh_installinit. -# -# dh_installinit doesn't do anything because somebody gave it a --no-start -# for unknown reasons. - -if [ -x /bin/systemctl ]; then - if /bin/systemctl --quiet is-active -- matrix-synapse; then - echo >&2 "stopping existing matrix-synapse service" - /bin/systemctl stop matrix-synapse || true - fi -fi - -#DEBHELPER# - -exit 0 |