[Pkg-ceph-commits] [ceph] 05/06: d/ceph.{postinst, preinst, postrm}: Ensure that ceph logrotate configuration is purged on upgrade from pre-yakkety installs (LP: #1635844).
James Downing Page
jamespage at moszumanska.debian.org
Wed Jan 18 11:40:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch ubuntu/yakkety
in repository ceph.
commit 66691f6201956ade657914a585c9e64e30603872
Author: James Page <james.page at ubuntu.com>
Date: Tue Nov 15 13:41:50 2016 +0000
d/ceph.{postinst,preinst,postrm}: Ensure that ceph logrotate configuration is purged on upgrade from pre-yakkety installs (LP: #1635844).
(cherry picked from commit c4483e8a7f3104e8320c10d11bc7488be538e163)
---
debian/ceph.postinst | 10 ++++++++++
debian/ceph.postrm | 10 ++++++++++
debian/ceph.preinst | 10 ++++++++++
debian/changelog | 3 +++
4 files changed, 33 insertions(+)
diff --git a/debian/ceph.postinst b/debian/ceph.postinst
new file mode 100644
index 0000000..91332ee
--- /dev/null
+++ b/debian/ceph.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/logrotate.d/ceph 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/ceph.postrm b/debian/ceph.postrm
new file mode 100644
index 0000000..91332ee
--- /dev/null
+++ b/debian/ceph.postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/logrotate.d/ceph 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/ceph.preinst b/debian/ceph.preinst
new file mode 100644
index 0000000..91332ee
--- /dev/null
+++ b/debian/ceph.preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+ /etc/logrotate.d/ceph 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/changelog b/debian/changelog
index 5e45c3d..adfff09 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,9 @@ ceph (10.2.5-0ubuntu0.16.10.1) yakkety; urgency=medium
* d/rules: Install upstream provided systemd targets and ensure they
are enabled and started on install to ensure that integrations aligned
to upstream packaging work with Ubuntu packages (LP: #1646583).
+ * d/ceph.{postinst,preinst,postrm}: Ensure that ceph logrotate
+ configuration is purged on upgrade from pre-yakkety installs
+ (LP: #1635844).
* d/ceph-base.*,d/*.logrotate: Install logrotate configuration
in ceph-common, ensuring that all daemons get log rotation on
log files, deal with removal of logrotate configuration in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list