Fix tor log file getting removed (#157)

This commit is contained in:
CaliBrain
2025-04-22 11:15:15 -07:00
committed by GitHub
parent 88a95fe15e
commit 93e15cbdd0
3 changed files with 11 additions and 3 deletions
+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"