webhook command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
webhook: command not found
or when using sudo you get the following error message
sudo: webhook: command not found
Solutions to webhook: command not found
How To Fix webhook: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu webhook is provided by webhook package.
webhook is:
Webhook is a lightweight configurable tool written in Go, that allows you to easily create HTTP endpoints (hooks) on your server, which you can use to execute configured commands. You can also pass data from the HTTP request (such as headers, payload or query variables) to your commands. webhook also allows you to specify rules which have to be satisfied in order for the hook to be triggered.
For example, if you’re using Github or Bitbucket, you can use webhook to set up a hook that runs a redeploy script for your project on your staging server, whenever you push changes to the master branch of your project.
To fix this problem, we can install more using the command below.
sudo apt-get -y install webhook
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install webhook.
sudo apt -y install webhook
Or if you have aptitude installed you can use the following command.
sudo aptitude install webhook
Summary
In this tutorial we learn how to fix webhook command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.