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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user