From 398ebd342ce7902fd86d63402dd2f0d6c19c9a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kr=C3=BCger?= Date: Thu, 13 Nov 2025 04:07:33 +0000 Subject: [PATCH] fix: add verbose logging to NSFW model deletion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added echo statements to track script execution - Added -v flag to rm to show deleted files - Confirmed deletion is working correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- ai/entrypoint.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/ai/entrypoint.sh b/ai/entrypoint.sh index 4326b63..1cc3d9b 100755 --- a/ai/entrypoint.sh +++ b/ai/entrypoint.sh @@ -1,13 +1,15 @@ #!/bin/sh -# Wait for models to be downloaded, then delete NSFW models once +echo "Starting Facefusion..." +# Start Facefusion in the background python -u facefusion.py run --config-path /config/facefusion-config.ini & -PID=0 +FACEFUSION_PID=$! -# Wait 60 seconds for initial model downloads -sleep 60 +echo "Waiting 90 seconds for model downloads..." +sleep 90 -# Delete NSFW models -rm -f /facefusion/.assets/models/nsfw_*.onnx /facefusion/.assets/models/nsfw_*.hash +echo "Deleting NSFW models..." +rm -vf /facefusion/.assets/models/nsfw_*.onnx /facefusion/.assets/models/nsfw_*.hash +echo "NSFW models deleted. Facefusion is running." # Wait for the main process -wait +wait $FACEFUSION_PID