Skill downloader - bash HTTP server using socat

This commit is contained in:
Azat
2026-02-03 00:18:55 +01:00
commit d8034a7dd0
3 changed files with 335 additions and 0 deletions

24
scripts/autorun.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -e
# Install dependencies
install_deps() {
local missing=""
command -v git &>/dev/null || missing="$missing git"
command -v curl &>/dev/null || missing="$missing curl"
command -v jq &>/dev/null || missing="$missing jq"
command -v socat &>/dev/null || missing="$missing socat"
if [ -n "$missing" ]; then
echo "Installing:$missing"
apt-get update
apt-get install -y $missing
fi
echo "Dependencies ready"
}
install_deps
echo "Skill downloader setup complete"