The main Bubble source repository. Contains the Bubble API server, the web UI, documentation and utilities. https://getbubblenow.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

reset_bubble_logs 498 B

12345678910111213141516
  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. #
  6. # Truncate all bubble logs
  7. #
  8. BUBBLE_LOGS_DIR=/var/log/bubble
  9. if [[ ! -d ${BUBBLE_LOGS_DIR} ]] ; then
  10. echo "BUBBLE_LOGS_DIR not found, nothing to truncate: ${BUBBLE_LOGS_DIR}"
  11. exit 0
  12. fi
  13. find ${BUBBLE_LOGS_DIR} -type f | while read log ; do
  14. cat /dev/null > ${log} && echo "truncated ${log}" || echo "error truncating ${log}"
  15. done