The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Você não pode selecionar mais de 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.

vultr_delete_instance_with_label.sh 530 B

12345678910111213141516
  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. LABEL=${1:?no label provided}
  6. THISDIR=$(cd $(dirname ${0}) && pwd)
  7. VCURL=${THISDIR}/vcurl
  8. SUBID=$(${THISDIR}/vultr_subid_for_instance.sh ${LABEL})
  9. if [[ -z "${SUBID}" ]] ; then
  10. echo "No instance found with label ${LABEL}"
  11. exit 1
  12. fi
  13. echo "Deleting instance: ${SUBID}"
  14. ${VCURL} server/destroy -X POST -d "SUBID=${SUBID}" || echo "Error deleting instance: ${SUBID}"