Skip to content

Commit

Permalink
kernel 4+ won't error out on status now (#2640)
Browse files Browse the repository at this point in the history
* checks for docker_dd_agent

* better conditional
gmmeyer authored Jun 30, 2016
1 parent 866a9b1 commit 462f7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/debian/datadog-agent.init
100644 → 100755
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ case "$1" in
major=$(echo "$( uname -r )" | cut -d"." -f1)
minor=$(echo "$( uname -r )" | cut -d"." -f2)
# If major version 3, and minor version 18+, OR major version 4+
if ( [ $major -eq 3 ] && [ $minor -ge 18 ] ) || [ $major -gt 3 ]; then
if [ "$DOCKER_DD_AGENT" != "" ] && ( ( [ $major -eq 3 ] && [ $minor -ge 18 ] ) || [ $major -gt 3 ] ); then
RED='\033[0;31m' # Red Text
NC='\033[0m' # No Color
echo "${RED}Warning: Known bug in Linux Kernel 3.18+ causes 'status' to fail.${NC}"

0 comments on commit 462f7a3

Please sign in to comment.