github.com/stevenmatthewt/agent@v3.5.4+incompatible/packaging/linux/scripts/after-remove.sh (about)

     1  # Remove the system service we installed
     2  if command -v systemctl > /dev/null; then
     3    rm -f /lib/systemd/system/buildkite-agent.service
     4    rm -f /lib/systemd/system/buildkite-agent@.service
     5  fi
     6  if [ -f /etc/init/buildkite-agent.conf ]; then
     7    rm -f /etc/init/buildkite-agent.conf
     8  fi
     9  if [ -f /etc/init.d/buildkite-agent ]; then
    10    rm -f /etc/init.d/buildkite-agent
    11  fi