diff options
author | Vijay Bellur <vbellur@redhat.com> | 2012-09-30 17:07:18 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-12-12 00:18:08 -0500 |
commit | 3c105743e44cd77137f22a788c19a759340c4d9a (patch) | |
tree | 39c310a642e0d8eb18d8d1c7ff7ff2677a09abca /glusterfs.spec.in | |
parent | f8c227d9a61a0e16508c471e01a96ac6cd74c09b (diff) |
build: Install virt group file as a config file.
Additionally copy virt group file to /var/lib/glusterd/groups/
during RPM install.
Change-Id: Ie0bedafc4354ac278adfb5cd8a1c1db61512d6a8
BUG: 861369
Reviewed-on: https://code.engineering.redhat.com/gerrit/42
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Tested-by: Vijay Bellur <vbellur@redhat.com>
Reviewed-on: https://code.engineering.redhat.com/gerrit/1871
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 8a446dcaef1..2863e27e2d2 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -262,6 +262,7 @@ fi %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL NEWS README THANKS %config %{_sysconfdir}/glusterfs/glusterfs-logrotate +%config %{_sysconfdir}/glusterfs/group-virt.example %{_libdir}/glusterfs %{_libdir}/*.so.* %{_sbindir}/glusterfs* @@ -330,7 +331,7 @@ fi # Need to copy the file. mkdir -p /var/lib/glusterd/groups -cp %{_docdir}/%{name}-%{version}/group-virt.example /var/lib/glusterd/groups/virt +cp %{_sysconfdir}/glusterfs/group-virt.example /var/lib/glusterd/groups/virt pidof -c -o %PPID -x glusterd &> /dev/null if [ $? -eq 0 ]; then |