virgo-agent-toolkit / rackspace-monitoring-agent

Rackspace Cloud Monitoring Agent
http://virgoagent.com/rackspace-monitoring-agent/
Apache License 2.0
118 stars 39 forks source link

Use /etc/redhat-release when available to pick package type #967

Closed itzg closed 6 years ago

itzg commented 6 years ago

This was needed since a Fedora 27 build slave had an /etc/issue that contained only the placeholders to be processed by motd:

\S
Kernel \r on an \m (\l)

All Redhat variants and clones (RHEL, Fedora, CentOS) support the /etc/redhat-release mechanism.

itzg commented 6 years ago

FYI, I confirmed the elseif syntax here https://cmake.org/cmake/help/v3.2/manual/cmake-language.7.html#conditional-blocks