fix: add verbose logging to NSFW model deletion

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-11-13 04:07:33 +00:00
parent dd9a9a44cb
commit 398ebd342c

View File

@@ -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