The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

do_delete_instance.sh 686 B

1234567891011121314151617
  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