The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
636 B

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