1 From 00eebc3db3243ddf52063b58666947e0301ed3e1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3 Date: Tue, 6 Jun 2017 12:20:06 +0200
4 Subject: [PATCH 7/7] ceph-common: fix logrotate on upgrade from Debian
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
11 debian/ceph-common.postinst | 2 ++
12 debian/ceph-common.postrm | 2 ++
13 debian/ceph-common.preinst | 5 +++++
14 3 files changed, 9 insertions(+)
15 create mode 100755 debian/ceph-common.preinst
17 diff --git a/debian/ceph-common.postinst b/debian/ceph-common.postinst
18 index 719dc79..a431b9a 100644
19 --- a/debian/ceph-common.postinst
20 +++ b/debian/ceph-common.postinst
21 @@ -99,6 +99,8 @@ case "$1" in
25 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"
27 # dh_installdeb will replace this with shell code automatically
28 # generated by other debhelper scripts.
30 diff --git a/debian/ceph-common.postrm b/debian/ceph-common.postrm
31 index b621854..63cfe4f 100644
32 --- a/debian/ceph-common.postrm
33 +++ b/debian/ceph-common.postrm
34 @@ -37,6 +37,8 @@ case "$1" in
38 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
43 diff --git a/debian/ceph-common.preinst b/debian/ceph-common.preinst
45 index 0000000..3bc000e
47 +++ b/debian/ceph-common.preinst
53 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"