]> git.proxmox.com Git - ceph.git/blob - patches/0007-ceph-common-fix-logrotate-on-upgrade-from-Debian.patch
a49d394b05db39bf654e57053af31a0c42db3565
[ceph.git] / patches / 0007-ceph-common-fix-logrotate-on-upgrade-from-Debian.patch
1 From da20a6c3188f37b1f3fe30c651a90fc17e46b148 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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
10 ---
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
16
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
22 ;;
23 esac
24
25 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"
26 +
27 # dh_installdeb will replace this with shell code automatically
28 # generated by other debhelper scripts.
29
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
35 ;;
36 esac
37
38 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"
39 +
40 # dh_installdeb will replace this with shell code automatically
41 # generated by other debhelper scripts.
42
43 diff --git a/debian/ceph-common.preinst b/debian/ceph-common.preinst
44 new file mode 100755
45 index 0000000..3bc000e
46 --- /dev/null
47 +++ b/debian/ceph-common.preinst
48 @@ -0,0 +1,5 @@
49 +#!/bin/sh
50 +
51 +set -e
52 +
53 +dpkg-maintscript-helper rm_conffile /etc/logrotate.d/ceph-common -- "$@"
54 --
55 2.1.4
56