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.
 
 
 
 

29 linhas
949 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. #
  6. # Initial activation of a bubble server
  7. #
  8. # Usage: bactivate activation.json
  9. #
  10. # activation.json : a JSON file containing the activation information.
  11. # see config/activation.json for an example
  12. #
  13. # Environment variables
  14. #
  15. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  16. # BUBBLE_USER : account to use. Default is root
  17. # BUBBLE_PASS : password for account. Default is root
  18. #
  19. SCRIPT="${0}"
  20. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  21. . ${SCRIPT_DIR}/bubble_common
  22. if [[ -z "${BUBBLE_JAR}" ]] ; then
  23. die "BUBBLE_JAR env var not set and no jar file found"
  24. fi
  25. ACTIVATION_JSON="${1:?no activation json file provided}"
  26. ${SCRIPT_DIR}/bput <"${ACTIVATION_JSON}" auth/activate - --no-login