Skip to content

Commit

Permalink
CB-30152: Chagned from dist check to defined el6 check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapolino committed Mar 2, 2020
1 parent dc85734 commit d13c67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cb-yara-connector.rpm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ mkdir -p ${RPM_BUILD_ROOT}/tmp
mkdir -p ${RPM_BUILD_ROOT}/var/run/
mkdir -p ${RPM_BUILD_ROOT}/var/cb/data/cb-yara-connector/feed_db

%if "%{?dist}" == ".el6"
%if %{defined el6}
mkdir -p ${RPM_BUILD_ROOT}/etc/init
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d/
install -m 700 ${RPM_SOURCE_DIR}/cb-yara-connector ${RPM_BUILD_ROOT}/etc/init.d/cb-yara-connector
Expand All @@ -44,7 +44,7 @@ touch ${RPM_BUILD_ROOT}/tmp/yaraconnectorceleryworker
%config /etc/cb/integrations/cb-yara-connector/yaraconnector.conf.example

%preun
%if "%{?dist}" == ".el6"
%if %{defined el6}
service cb-yara-connector stop
%else # EL7 and up
systemctl stop cb-yara-connector
Expand Down

0 comments on commit d13c67e

Please sign in to comment.