The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. #
  3. # Initial activation of a bubble server
  4. #
  5. # Usage: activate activation.json
  6. #
  7. # activation.json : a JSON file containing the activation information.
  8. # see config/activation.json for an example
  9. #
  10. # Environment variables
  11. #
  12. # BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
  13. # BUBBLE_USER : account to use. Default is root
  14. # BUBBLE_PASS : password for account. Default is root
  15. #
  16. SCRIPT="${0}"
  17. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  18. . ${SCRIPT_DIR}/bubble_common
  19. if [[ -z "${BUBBLE_JAR}" ]] ; then
  20. die "BUBBLE_JAR env var not set and no jar file found"
  21. fi
  22. ACTIVATION_JSON="${1:?no activation json file provided}"
  23. ${SCRIPT_DIR}/bput <"${ACTIVATION_JSON}" auth/activate - --no-login