diff options
author | Gaurav Kumar Garg <ggarg@redhat.com> | 2015-02-13 17:10:37 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-02-17 07:46:43 -0800 |
commit | de6f4ce0dd894c78632bf7b2ebc00d8044fba688 (patch) | |
tree | d890fe82336be472530ef20e84ac1f2fa2f7f0a2 /glusterfs.spec.in | |
parent | eebc3c06693c324be261c994f8e74886b7715770 (diff) |
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 <ggarg@redhat.com>
Reviewed-on: http://review.gluster.org/9652
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 12 |
1 files changed, 12 insertions, 0 deletions
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 <ggarg@redhat.com> +- .cmd_log_history file should be renamed to cmd_history.log post + upgrade (#1165996) + * Fri Jan 30 2015 Nandaja Varma <nvarma@redhat.com> - remove checks for rpmbuild/mock from run-tests.sh (#178008) |