contrib/osmo-sgsn.spec: fix build for almalinux:8
Add the missing "%if 0%{?suse_version}" around %service_del/add
commands, as these are only available on opensuse.
Fixes: a07e6d9c
(".deb/.rpm: add osmocom user during package install")
Change-Id: I89802f926bfccc0f7b4bb1ff64115b232b1db022
This commit is contained in:
parent
a07e6d9c58
commit
bd5157edc1
|
@ -100,10 +100,12 @@ chmod 0660 /etc/osmocom/osmo-sgsn.cfg
|
|||
chown root:osmocom /etc/osmocom
|
||||
chmod 2775 /etc/osmocom
|
||||
|
||||
%if 0%{?suse_version}
|
||||
%preun -n osmo-gtphub %service_del_preun osmo-gtphub.service
|
||||
%postun -n osmo-gtphub %service_del_postun osmo-gtphub.service
|
||||
%pre -n osmo-gtphub %service_add_pre osmo-gtphub.service
|
||||
%post -n osmo-gtphub %service_add_post osmo-gtphub.service
|
||||
%endif
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check || (find . -name testsuite.log -exec cat {} +)
|
||||
|
|
Loading…
Reference in New Issue