Skip to content

Commit ed44c68

Browse files
Update scripts/db_cleanup/regenerate-database.sh
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 30c832b commit ed44c68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/db_cleanup/regenerate-database.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
NETALERTX_DB_FILE=${NETALERTX_DB:-/data/db}/app.db
55

66
#remove the old database
7-
rm "${NETALERTX_DB_FILE}"
7+
rm -f "${NETALERTX_DB_FILE}" "${NETALERTX_DB_FILE}-shm" "${NETALERTX_DB_FILE}-wal"
88

99
# Calculate script directory and schema path
1010
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

0 commit comments

Comments
 (0)