Internal API and Events

We can execute actions in certain points or events. Check the example file located in /opt/webinoly/lib/api-events_sample, you just have to rename the file to api-events to start running.

Use the complete code list for each command where you can select the exact moment where your code will be executed.

For example, at the end of the Nginx installation (code: in2) event, we could install some additional tool, or when a Webinoly command is executed, we can communicate with an external tool or execute any code we want.

* Note that these codes were changed and updated recently (v1.17.3)

# Example
# Install my own package after Nginx is installed!

if [[ $1 == "in2" ]]; then
	sudo apt install -y my-own-package
fi

This content is restricted to GitHub Sponsors only.

Your sponsorship helps make content like this possible!

If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the Community Forum.