v1.1: Update-UI mit Verlauf, Referenzeditor für Pakete, Referenzskript (automatische Versionsupdates mit POST-Integration)

This commit is contained in:
chickenandrice02 2025-06-26 14:06:37 +02:00
parent 029caa8565
commit 06515b8d43
8 changed files with 1412 additions and 148 deletions

20
send-update.log.sh Normal file
View file

@ -0,0 +1,20 @@
#!/bin/bash
API_URL="http://192.168.18.4:8000/api/updatecheck/"
API_TOKEN="9d207bf0-10f5-4d8f-a479-22ff5aeff8d1"
HOSTNAME=$(hostname)
TIMESTAMP=$(date -Iseconds)
OS=$(lsb_release -ds 2>/dev/null || echo "Unknown")
KERNEL=$(uname -r)
# Pakete
PACKAGES="python3|openssh-server|nginx"
PACKAGE_VERSIONS=$(dpkg-query -W -f='${binary:Package}=${Version}\n' 2>/dev/null | grep -E "$PACKAGES" | tr '\n' ';')
# Zusammenbauen
BODY="$HOSTNAME,$TIMESTAMP,os=$OS;kernel=$KERNEL;$PACKAGE_VERSIONS"
curl -s -X POST "$API_URL" \
-H "Authorization: Bearer $API_TOKEN" \
-d "$BODY"