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.
 
 
 
 

16 lines
496 B

  1. #!/bin/bash
  2. #
  3. # Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
  4. #
  5. # Truncate all bubble logs
  6. #
  7. BUBBLE_LOGS_DIR=/var/log/bubble
  8. if [[ ! -d ${BUBBLE_LOGS_DIR} ]] ; then
  9. echo "BUBBLE_LOGS_DIR not found, nothing to truncate: ${BUBBLE_LOGS_DIR}"
  10. exit 0
  11. fi
  12. find ${BUBBLE_LOGS_DIR} -type f | while read log ; do
  13. cat /dev/null > ${log} && echo "truncated ${log}" || echo "error truncating ${log}"
  14. done