feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run
Some checks are pending
Qualité / tests (push) Waiting to run
This commit is contained in:
18
scripts/audit.sh
Normal file
18
scripts/audit.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "$(id -u)" == "0" ]]; then echo "ERREUR: exécutez cet audit avec l'utilisateur normal." >&2; exit 1; fi
|
||||
echo "Utilisateur: $(id -un) (uid $(id -u), gid $(id -g))"
|
||||
echo "Système: $(uname -a)"
|
||||
for command in docker git tailscale; do
|
||||
printf '%-10s ' "$command"
|
||||
if path="$(command -v "$command" 2>/dev/null)"; then
|
||||
version="$($command --version 2>&1 | head -n 1 || true)"
|
||||
echo "$path — $version"
|
||||
else
|
||||
echo "ABSENT"
|
||||
fi
|
||||
done
|
||||
if command -v docker >/dev/null 2>&1; then docker compose version 2>/dev/null || echo "Docker Compose: ABSENT"; fi
|
||||
echo "Ports en écoute:"
|
||||
ss -lntup 2>/dev/null || ss -lnt 2>/dev/null || echo "ss indisponible"
|
||||
Reference in New Issue
Block a user