[Debian-ha-svn-commits] [SCM] corosync Debian packaging branch, master, updated. debian/1.2.0-1-1-ge6d54e6
Guido Günther
agx at sigxcpu.org
Sun Jan 31 17:17:46 UTC 2010
The following commit has been merged in the master branch:
commit e6d54e69c701c4d2f0bb88c4a2916a3ac7bd7a48
Author: Guido Günther <agx at sigxcpu.org>
Date: Thu Jan 28 15:46:12 2010 +0100
Make sure /var/log/corosync/ is nonempty
otherwise removing corosync also removes this dir which makes logrotate
choke. A purge cleans up the log files anyway.
diff --git a/debian/corosync.postinst b/debian/corosync.postinst
index 3a88a5b..a77aca9 100644
--- a/debian/corosync.postinst
+++ b/debian/corosync.postinst
@@ -6,6 +6,10 @@ set -e
if [ "$1" = "configure" ]; then
adduser --quiet --group --system --no-create-home ais
+
+ # Touch an empty file so the log dir stays around after package removal
+ # so logrotate doesn't choke
+ touch /var/log/corosync/.empty
fi
#DEBHELPER#
--
corosync Debian packaging
More information about the Debian-ha-svn-commits
mailing list