Skip to content

Commit be64712

Browse files
committed
fix service file
1 parent 0e31cb3 commit be64712

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/rpm/unit.spec.in

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ DESTDIR=%{buildroot} make unitd-install libunit-install manpage-install E=0
152152
%{__rm} -rf %{buildroot}%{_initrddir}/
153153
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/unit.service
154154
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/unit-debug.service
155+
# relocate when sbindir is /usr/bin
156+
sed -e 's:/usr/sbin:%{_sbindir}:' -i %{buildroot}%{_unitdir}/*.service
157+
155158

156159
%if (0%{?fedora}) || (0%{?rhel} >= 8) || (0%{?amzn2})
157160
%{__mkdir} -p %{buildroot}%{_includedir}/unit/

0 commit comments

Comments
 (0)