Skip to content

Commit

Permalink
Fixes #13565: syntax error on rhel7 when building rudder-reports
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceMacBuche committed Sep 25, 2018
1 parent ccecbc4 commit baceb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rudder-reports/SPECS/rudder-reports.spec
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ install -m 644 %{SOURCE3} %{buildroot}/opt/rudder/etc/server-roles.d/
#=================================================

POSTGRESQL_SERVICE_NAME=$(systemctl list-unit-files --type service | awk -F'.' '{print $1}' | grep -E "^postgresql[0-9]*$" | tail -n 1)
%if %{?suse_version} < 1500
%if 0%{?suse_version} < 1500
POSTGRESQL_SERVICE_NAME=$(chkconfig 2>/dev/null | awk '{ print $1 }' | grep "postgresql" | tail -n 1)
%endif

Expand Down

0 comments on commit baceb5e

Please sign in to comment.