The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities.
https://getbubblenow.com
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- #!/bin/bash
-
- DROPLETID=${1:?no DROPLETID provided}
- THISDIR=$(cd $(dirname ${0}) && pwd)
- DOCURL=${THISDIR}/docurl
-
- if [[ ${DROPLETID} == "-n" ]] ; then
- DROPLET_NAME=${2:?no droplet name provided}
- echo "Deleting droplet named: ${DROPLET_NAME}"
- ${0} $(${DOCURL} droplets | jq -r '.droplets[] | select(.name=="'${DROPLET_NAME}'") | .id') || echo "Error deleting droplet named: ${DROPLET_NAME}"
-
- else
- echo "Deleting instance: ${DROPLETID}"
- ${DOCURL} droplets/${DROPLETID} -X DELETE || echo "Error deleting instance: ${DROPLETID}"
- fi
|