The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

bencrypt 636 B

il y a 4 ans
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 "${@}"