From de6f4ce0dd894c78632bf7b2ebc00d8044fba688 Mon Sep 17 00:00:00 2001 From: Gaurav Kumar Garg Date: Fri, 13 Feb 2015 17:10:37 +0530 Subject: build: .cmd_log_history should be renamed to cmd_history.log post upgrade. While upgrading from glusterfs-version < 3.6 to glusterfs-3.6, .cmd_log_history hidden file still present in /var/log/glusterfs/ directory. With this fix it will not have .cmd_log_history hidden file and it will rename it to cmd_history.log file. Change-Id: I2c1658056ddd75ce923f100961205a3b78394466 BUG: 1165996 Signed-off-by: Gaurav Kumar Garg Reviewed-on: http://review.gluster.org/9652 Reviewed-by: Atin Mukherjee Reviewed-by: Niels de Vos Tested-by: Niels de Vos --- glusterfs.spec.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 4267b79e596..1b163245f68 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -739,6 +739,14 @@ fi # Legacy server %_init_enable glusterd %_init_enable glusterfsd +# ".cmd_log_history" is renamed to "cmd_history.log" in GlusterFs-3.7 . +# While upgrading glusterfs-server package form GlusterFs version <= 3.6 to +# GlusterFs version 3.7, ".cmd_log_history" should be renamed to +# "cmd_history.log" to retain cli command history contents. +if [ -f %{_localstatedir}/log/glusterfs/.cmd_log_history ]; then + mv %{_localstatedir}/log/glusterfs/.cmd_log_history \ + %{_localstatedir}/log/glusterfs/cmd_history.log +fi # Genuine Fedora (and EPEL) builds never put gluster files in /etc; if # there are any files in /etc from a prior gluster.org install, move them @@ -1030,6 +1038,10 @@ fi %ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/nfs/run/nfs.pid %changelog +* Fri Feb 13 2015 Gaurav Kumar Garg +- .cmd_log_history file should be renamed to cmd_history.log post + upgrade (#1165996) + * Fri Jan 30 2015 Nandaja Varma - remove checks for rpmbuild/mock from run-tests.sh (#178008) -- cgit