Initial resurrection kit — 81 scripts, 62 references, configs, systemd units, crons, Docker compose files, Caddy config, master README
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
# Shark scraper wrapper — silent on success, only outputs on failure
|
||||
cd /root/shark-game/scraper
|
||||
OUTPUT=$(python3 scrape.py 2>&1)
|
||||
EXIT=$?
|
||||
if [ $EXIT -ne 0 ]; then
|
||||
echo "Shark scraper FAILED (exit $EXIT):"
|
||||
echo "$OUTPUT"
|
||||
exit $EXIT
|
||||
fi
|
||||
# Success = silent, no output, no notification
|
||||
Reference in New Issue
Block a user