The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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