]> git.proxmox.com Git - ceph.git/blame - patches/0007-ceph-common-fix-logrotate-on-upgrade-from-Debian.patch
bump version to 12.0.3-pve1
[ceph.git] / patches / 0007-ceph-common-fix-logrotate-on-upgrade-from-Debian.patch
CommitLineData
3faa8656 1From 00eebc3db3243ddf52063b58666947e0301ed3e1 Mon Sep 17 00:00:00 2001
27903e2c
FG
2From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
3Date: Tue, 6 Jun 2017 12:20:06 +0200
4Subject: [PATCH 7/7] ceph-common: fix logrotate on upgrade from Debian
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Signed-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
17diff --git a/debian/ceph-common.postinst b/debian/ceph-common.postinst
18index 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
30diff --git a/debian/ceph-common.postrm b/debian/ceph-common.postrm
31index 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
43diff --git a/debian/ceph-common.preinst b/debian/ceph-common.preinst
44new file mode 100755
45index 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--
552.1.4
56