[Pkg-ceph-commits] [ceph] 01/01: d/radosgw.{postinst, postrm, preinst}: Handle renaming of radosgw upstart configuration on upgrade at 0.72.1-3.
James Downing Page
jamespage at moszumanska.debian.org
Fri Jan 17 10:45:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch master
in repository ceph.
commit 4d7304b016fcbdfe93ef7d51e0d10bc74a51100a
Author: James Page <james.page at ubuntu.com>
Date: Fri Jan 17 10:45:32 2014 +0000
d/radosgw.{postinst,postrm,preinst}: Handle renaming of radosgw upstart configuration on upgrade at 0.72.1-3.
---
debian/changelog | 7 +++++++
debian/radosgw.postinst | 6 ++++++
debian/radosgw.postrm | 13 +++++++++++++
debian/radosgw.preinst | 13 +++++++++++++
4 files changed, 39 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 5d3ea73..d14409d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ceph (0.72.2-2) UNRELEASED; urgency=medium
+
+ * d/radosgw.{postinst,postrm,preinst}: Handle renaming of radosgw
+ upstart configuration on upgrade at 0.72.1-3.
+
+ -- James Page <james.page at ubuntu.com> Tue, 14 Jan 2014 14:49:35 +0000
+
ceph (0.72.2-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/radosgw.postinst b/debian/radosgw.postinst
index d9d8766..790572e 100644
--- a/debian/radosgw.postinst
+++ b/debian/radosgw.postinst
@@ -44,6 +44,12 @@ case "$1" in
;;
esac
+if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
+ dpkg-maintscript-helper mv_conffile \
+ /etc/init/radosgw.conf /etc/init/radosgw-instance.conf \
+ 0.72.1-3~ radosgw -- "$@"
+fi
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
diff --git a/debian/radosgw.postrm b/debian/radosgw.postrm
new file mode 100644
index 0000000..3083c14
--- /dev/null
+++ b/debian/radosgw.postrm
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
+ dpkg-maintscript-helper mv_conffile \
+ /etc/init/radosgw.conf /etc/init/radosgw-instance.conf \
+ 0.72.1-3~ radosgw -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/radosgw.preinst b/debian/radosgw.preinst
new file mode 100644
index 0000000..3083c14
--- /dev/null
+++ b/debian/radosgw.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
+ dpkg-maintscript-helper mv_conffile \
+ /etc/init/radosgw.conf /etc/init/radosgw-instance.conf \
+ 0.72.1-3~ radosgw -- "$@"
+fi
+
+#DEBHELPER#
+
+exit 0
--
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-ceph/ceph.git
More information about the Pkg-ceph-commits
mailing list