Skip to content

Commit

Permalink
Fix post remove script to remove telegraf related
Browse files Browse the repository at this point in the history
Fix for telegraf issue: influxdata#1379
  • Loading branch information
Srini Chebrolu authored Jun 16, 2016
1 parent af0979c commit 57abb32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions scripts/post-remove.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ elif [[ -f /etc/debian_version ]]; then
disable_update_rcd
fi
fi
elif [[ -f /etc/os-release ]]; then
source /etc/os-release
if [[ $ID = "amzn" ]]; then
# Amazon Linux logic
which systemctl &>/dev/null
if [[ $? -eq 0 ]]; then
# I don't find systemd supported in Amazon Linux yet, but adding as Amazon support telegraf is ready to handle systemd
disable_systemd
rm -f /etc/default/telegraf
else
# Assuming sysv
disable_chkconfig
fi
fi
fi

0 comments on commit 57abb32

Please sign in to comment.