Skip to content

Commit

Permalink
Fixes #15535: rudder server trigger-policy-generation/reload-groups, …
Browse files Browse the repository at this point in the history
…etc outputs curl error if apache2 is stopped
  • Loading branch information
peckpeck committed Nov 13, 2019
1 parent a122d7f commit 74f9965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/commands/server-trigger-policy-generation
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ while getopts "iIvdc" opt; do
done

# check if the API is available
api_result=$(filtered_api_call "${API_URL}/api/latest/system/status" "${TOKEN}" "GET" "" "${DISPLAY_COMMAND}")
api_result=$(filtered_api_call "${API_URL}/api/latest/system/status" "${TOKEN}" "GET" "" "${DISPLAY_COMMAND}" 2>/dev/null)
api_code=$?

if [ ${api_code} -eq 0 ]
Expand Down

0 comments on commit 74f9965

Please sign in to comment.