- 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>
16 lines
446 B
Bash
Executable File
16 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
echo "Starting Facefusion..."
|
|
# Start Facefusion in the background
|
|
python -u facefusion.py run --config-path /config/facefusion-config.ini &
|
|
FACEFUSION_PID=$!
|
|
|
|
echo "Waiting 90 seconds for model downloads..."
|
|
sleep 90
|
|
|
|
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 $FACEFUSION_PID
|