Accepting request 63083 from home:msmeissn:branches:security
ok OBS-URL: https://build.opensuse.org/request/show/63083 OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=36
This commit is contained in:
22
haveged.spec
22
haveged.spec
@@ -67,22 +67,18 @@ rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
## brace for impact...
|
||||
%if 0%{?sles_version}
|
||||
if [ -x /usr/bin/lscpu ]; then
|
||||
if /usr/bin/lscpu | grep -q "Virtualization type" ; then
|
||||
## Is a VM
|
||||
%{fillup_and_insserv -fy %{name}}
|
||||
else
|
||||
## it isnt.
|
||||
%{fillup_and_insserv -f %{name}}
|
||||
fi
|
||||
if [ -x /usr/bin/lscpu ]; then
|
||||
if /usr/bin/lscpu | grep -q "Virtualization type" ; then
|
||||
## Is a VM
|
||||
%{fillup_and_insserv -fy %{name}}
|
||||
else
|
||||
##there is no lscpu! shouldnt happend...
|
||||
## it isnt.
|
||||
%{fillup_and_insserv -f %{name}}
|
||||
fi
|
||||
%else
|
||||
%{fillup_and_insserv -fy %{name}}
|
||||
%endif
|
||||
else
|
||||
##there is no lscpu! shouldnt happend...
|
||||
%{fillup_and_insserv -f %{name}}
|
||||
fi
|
||||
|
||||
%postun
|
||||
%restart_on_update %{name}
|
||||
|
Reference in New Issue
Block a user