]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
debian: sync logrotate packaging with downstream
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 6 Jun 2017 10:20:06 +0000 (12:20 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 8 Jun 2017 14:12:01 +0000 (16:12 +0200)
both Ubuntu and Debian put the logrotate script into
ceph-common, to ensure that radosgw logs are rotated as
well.

to prevent duplicate logrotate scripts handling the same log
files, and to minimize the delta between upstream and
downstream packaging, sync this change back upstream.

Fixes: http://tracker.ceph.com/issues/19938
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
debian/ceph-base.maintscript [new file with mode: 0644]
debian/rules

diff --git a/debian/ceph-base.maintscript b/debian/ceph-base.maintscript
new file mode 100644 (file)
index 0000000..38e36d4
--- /dev/null
@@ -0,0 +1,2 @@
+rm_conffile /etc/logrotate.d/ceph.logrotate -- "$@"
+rm_conffile /etc/logrotate.d/ceph -- "$@"
index 200b6dbfd8d6d97fdcf2122eb69b8288be9bda20..d4b3c97f719c3f20121ceedd808bbb17a18a6aef 100755 (executable)
@@ -59,8 +59,8 @@ override_dh_installdocs:
        dh_installdocs -a --all ChangeLog
 
 override_dh_installlogrotate:
-       cp src/logrotate.conf debian/ceph-base.ceph.logrotate
-       dh_installlogrotate -pceph-base --name=ceph
+       cp src/logrotate.conf debian/ceph-common.logrotate
+       dh_installlogrotate -pceph-common
 
 override_dh_installinit:
        # dh_installinit is only set up to handle one upstart script