Procházet zdrojové kódy

add reset logs script

tags/v1.1.4
Jonathan Cobb před 4 roky
rodič
revize
77b2e3a6a7
2 změnil soubory, kde provedl 18 přidání a 1 odebrání
  1. +16
    -0
      bin/reset_bubble_logs
  2. +2
    -1
      bubble-server/src/main/resources/ansible/bubble_scripts.txt

+ 16
- 0
bin/reset_bubble_logs Zobrazit soubor

@@ -0,0 +1,16 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
#
# Truncate all bubble logs
#
BUBBLE_LOGS_DIR=/var/log/bubble
if [[ ! -d ${BUBBLE_LOGS_DIR} ]] ; then
echo "BUBBLE_LOGS_DIR not found, nothing to truncate: ${BUBBLE_LOGS_DIR}"
exit 0
fi

find ${BUBBLE_LOGS_DIR} -type f | while read log ; do
cat /dev/null > ${log} && echo "truncated ${log}" || echo "error truncating ${log}"
done

+ 2
- 1
bubble-server/src/main/resources/ansible/bubble_scripts.txt Zobrazit soubor

@@ -19,4 +19,5 @@ install_packer.sh
rkeys
rmembers
rdelkeys
mitm_pid
mitm_pid
reset_bubble_logs

Načítá se…
Zrušit
Uložit