Fix tor log file getting removed (#157)

This commit is contained in:
CaliBrain authored and GitHub committed 2025-04-22 11:15:15 -07:00
1 parent 88a95fe15e
commit 93e15cbdd0
3 files changed
+11 -3

No files matched your search

+7
View File
@@ -6,6 +6,13 @@ LOG_FILE=${LOG_DIR}/cwa-bd_entrypoint.log
# Cleanup any existing files or folders in the log directory
rm -rf $LOG_DIR/*
(
if [ "$USING_TOR" = "true" ]; then
./tor.sh
fi
)
exec 3>&1 4>&2
exec > >(tee -a $LOG_FILE) 2>&1
echo "Starting entrypoint script"