Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Internal API or Events
- # Docs: https://webinoly.com/en/api/internal-api-events/
- # Description: Execute actions at certain points or events, for example at the end of the "stack" command each time is executed
- # or after Nginx is installed. Just rename this file to "api-events" and check for the complete list of status codes in the docu$
- # Just put all your code inside this function:
- api-events_catch_status() {
- echo "${blu}API Status: $1 ${end}"
- # command 1
- if [[ -n $test ]]; then
- echo "Test message..."
- # command 2
- elif [[ -n $test2 ]]; then
- echo "Test 2 message"
- # command 3
- elif [[ -n $test3 ]]; then
- echo "Test 3 message"
- fi
- exit 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement