summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/snap_scheduler/Makefile.am2
-rw-r--r--glusterfs.spec.in8
2 files changed, 6 insertions, 4 deletions
diff --git a/extras/snap_scheduler/Makefile.am b/extras/snap_scheduler/Makefile.am
index 24aa8241727..896595f1504 100644
--- a/extras/snap_scheduler/Makefile.am
+++ b/extras/snap_scheduler/Makefile.am
@@ -1,4 +1,4 @@
-snap_schedulerdir = $(DESTDIR)$(sbindir)/
+snap_schedulerdir = $(sbindir)/
snap_scheduler_SCRIPTS = gcron.py snap_scheduler.py
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 78970964172..8132de86639 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -1042,6 +1042,11 @@ fi
%{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/mgmt*
%{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/nfs*
%{_sharedstatedir}/glusterd
+
+#snap_scheduler
+%{_sbindir}/snap_scheduler.py
+%{_sbindir}/gcron.py
+
#hookscripts
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1
@@ -1054,9 +1059,6 @@ fi
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre
-#snap_scheduler
-install -p -m 0744 extras/snap_scheduler/snap_scheduler.py %{_sbindir}/
-install -p -m 0744 extras/snap_scheduler/gcron.py %{_sbindir}/
%ghost %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
%ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/options