The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

18 Zeilen
686 B

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. DROPLETID=${1:?no DROPLETID provided}
  6. THISDIR=$(cd $(dirname ${0}) && pwd)
  7. DOCURL=${THISDIR}/docurl
  8. if [[ ${DROPLETID} == "-n" ]] ; then
  9. DROPLET_NAME=${2:?no droplet name provided}
  10. echo "Deleting droplet named: ${DROPLET_NAME}"
  11. ${0} $(${DOCURL} droplets | jq -r '.droplets[] | select(.name=="'${DROPLET_NAME}'") | .id') || echo "Error deleting droplet named: ${DROPLET_NAME}"
  12. else
  13. echo "Deleting instance: ${DROPLETID}"
  14. ${DOCURL} droplets/${DROPLETID} -X DELETE || echo "Error deleting instance: ${DROPLETID}"
  15. fi