[Pkg-ceph-commits] [ceph] 04/06: 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 ceph-base for upgrades (LP: #1609866).

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 35a2587ab2eb1863da4dee71111723ae489b1b47
Author: James Page <james.page at ubuntu.com>
Date:   Wed Nov 30 15:29:41 2016 +0000

    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 ceph-base for upgrades (LP: #1609866).
    
    (cherry picked from commit 64370f78798c1184ab1c11cfe401b4421633bb4f)
---
 debian/ceph-base.postinst                             |  3 +++
 debian/ceph-base.postrm                               |  3 +++
 debian/ceph-base.preinst                              | 10 ++++++++++
 debian/{ceph-base.logrotate => ceph-common.logrotate} |  0
 debian/changelog                                      |  4 ++++
 debian/radosgw.logrotate                              |  1 -
 6 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/debian/ceph-base.postinst b/debian/ceph-base.postinst
index 23712a8..f969bdb 100644
--- a/debian/ceph-base.postinst
+++ b/debian/ceph-base.postinst
@@ -53,6 +53,9 @@ case "$1" in
 	;;
 esac
 
+dpkg-maintscript-helper rm_conffile \
+    /etc/logrotate.d/ceph-base 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
diff --git a/debian/ceph-base.postrm b/debian/ceph-base.postrm
index 48e4853..1e2b702 100644
--- a/debian/ceph-base.postrm
+++ b/debian/ceph-base.postrm
@@ -37,6 +37,9 @@ case "$1" in
     ;;
 esac
 
+dpkg-maintscript-helper rm_conffile \
+    /etc/logrotate.d/ceph-base 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
 # dh_installdeb will replace this with shell code automatically
 # generated by other debhelper scripts.
 
diff --git a/debian/ceph-base.preinst b/debian/ceph-base.preinst
new file mode 100644
index 0000000..b1a7bac
--- /dev/null
+++ b/debian/ceph-base.preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -e
+
+dpkg-maintscript-helper rm_conffile \
+    /etc/logrotate.d/ceph-base 10.2.5-0ubuntu0.16.10.1~ -- "$@"
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/ceph-base.logrotate b/debian/ceph-common.logrotate
similarity index 100%
rename from debian/ceph-base.logrotate
rename to debian/ceph-common.logrotate
diff --git a/debian/changelog b/debian/changelog
index e44c57b..5e45c3d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,10 @@ 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-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
+    ceph-base for upgrades (LP: #1609866).
 
  -- James Page <james.page at ubuntu.com>  Wed, 14 Dec 2016 11:36:08 +0000
 
diff --git a/debian/radosgw.logrotate b/debian/radosgw.logrotate
deleted file mode 120000
index 6790479..0000000
--- a/debian/radosgw.logrotate
+++ /dev/null
@@ -1 +0,0 @@
-../src/rgw/logrotate.conf
\ No newline at end of file

-- 
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