# Remove the system service we installed
if command -v systemctl > /dev/null; then
  rm -f /lib/systemd/system/buildkite-agent.service
elif [ -d /etc/init ]; then
  rm -f /etc/init/buildkite-agent.conf
elif [ -d /etc/init.d ]; then
  rm -f /etc/init.d/buildkite-agent
fi

# Remove the system service we installed
if command -v systemctl > /dev/null; then
  rm -f /lib/systemd/system/buildkite-agent.service
fi
if [ -f /etc/init/buildkite-agent.conf ]; then
  rm -f /etc/init/buildkite-agent.conf
fi
if [ -f /etc/init.d/buildkite-agent ]; then
  rm -f /etc/init.d/buildkite-agent
fi

Check all 3 locations which could have been touched by the install script
Check all 3 locations which could have been touched by the install script
