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.

4 年之前
12345678910111213141516
  1. #!/bin/bash
  2. SCRIPT="${0}"
  3. SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
  4. . ${SCRIPT_DIR}/bubble_common
  5. if [[ -z "${BUBBLE_DB_ENCRYPTION_KEY}" ]] ; then
  6. if [[ -f "${HOME}/.BUBBLE_DB_ENCRYPTION_KEY" ]] ; then
  7. BUBBLE_DB_ENCRYPTION_KEY=$(cat ${HOME}/.BUBBLE_DB_ENCRYPTION_KEY)
  8. elif [[ -f "/home/bubble/.BUBBLE_DB_ENCRYPTION_KEY" ]] ; then
  9. BUBBLE_DB_ENCRYPTION_KEY=$(cat /home/bubble/.BUBBLE_DB_ENCRYPTION_KEY)
  10. else
  11. die "BUBBLE_DB_ENCRYPTION_KEY env var not defined, and no .BUBBLE_DB_ENCRYPTION_KEY file found"
  12. fi
  13. fi
  14. BUBBLE_DB_ENCRYPTION_KEY=${BUBBLE_DB_ENCRYPTION_KEY} exec ${SCRIPT_DIR}/bubble crypt -f encrypt "${@}"