Skip to content

Commit

Permalink
Create %{_datarootdir}/opentsdb/plugins in rpm.
Browse files Browse the repository at this point in the history
The folder %{_datarootdir}/opentsdb/plugins is required for opentsdb to
start and should be created by the rpm when installing.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
  • Loading branch information
Jonathan Works authored and manolama committed Apr 22, 2014
1 parent 7c3acdd commit c6e81b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opentsdb.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ make
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}/var/cache/opentsdb
mkdir -p %{buildroot}%{_datarootdir}/opentsdb/plugins
# TODO: Use alternatives to manage the init script and configuration.

%clean
Expand All @@ -66,6 +67,7 @@ rm -rf %{buildroot}
%defattr(644,root,root,755)
%attr(0755,root,root) %{_bindir}/*
%attr(0755,root,root) %{_datarootdir}/opentsdb/bin/*.sh
%attr(0755,root,root) %{_datarootdir}/opentsdb/plugins
%attr(0755,root,root) %{_datarootdir}/opentsdb/tools/*
%attr(0755,root,root) %{_datarootdir}/opentsdb/etc/init.d/opentsdb
%config %{_datarootdir}/opentsdb/etc/opentsdb/opentsdb.conf
Expand All @@ -88,4 +90,4 @@ exit 0
rm -rf /etc/opentsdb
rm -rf /etc/init.d/opentsdb

exit 0
exit 0

0 comments on commit c6e81b6

Please sign in to comment.