diff options
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index ffbe2812f..b2439e272 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -136,6 +136,13 @@ find %{buildroot}%{_libdir} -name '*.a' | xargs rm -f /sbin/ldconfig /sbin/chkconfig --add glusterd +#create rbstate file +if [ -d /etc/glusterd/vols ]; then +for file in `find /etc/glusterd/vols -type f -name info`; +do +grep "rb_" $file &> /tmp/rbstate && mv /tmp/rbstate `dirname $file` && sed -i.bck '/rb_/d' $file +done +fi #update /etc/ld.so.conf.d echo "%{_prefix}/lib64" > /etc/ld.so.conf.d/glusterfs.conf |