Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Internal API or Events
  4. # Docs: https://webinoly.com/en/api/internal-api-events/
  5.  
  6. # Description: Execute actions at certain points or events, for example at the end of the "stack" command each time is executed
  7. # or after Nginx is installed. Just rename this file to "api-events" and check for the complete list of status codes in the docu$
  8.  
  9. # Just put all your code inside this function:
  10. api-events_catch_status() {
  11.   echo "${blu}API Status: $1 ${end}"
  12.  
  13.   # command 1
  14.   if [[ -n $test ]]; then
  15.     echo "Test message..."
  16.  
  17.   # command 2
  18.   elif [[ -n $test2 ]]; then
  19.     echo "Test 2 message"
  20.  
  21.   # command 3
  22.   elif [[ -n $test3 ]]; then
  23.     echo "Test 3 message"
  24.   fi
  25.   exit 0
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement