The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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 "${@}"