Files
SentinelMesh/install/install.sh
T
gilles 7cf56f24ef chore: initialise la structure du projet SentinelMesh
- Workspace Cargo avec backend, agent-scan-network, agent-metric
- Skeleton Rust pour les trois crates (Axum, Tokio, SQLx)
- Documentation : README, FEATURES, ROADMAP, ARCHITECTURE, API, INSTALL
- Exemples de widgets Glance (custom-api)
- Script d'installation agents (squelette Phase 5)
- Docker Compose + Dockerfile backend
- .gitignore et CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-19 05:59:12 +02:00

32 lines
907 B
Bash

#!/usr/bin/env bash
# Script d'installation des agents SentinelMesh
set -euo pipefail
SERVER=""
PORT="8080"
TOKEN=""
AGENT_TYPE=""
HOSTNAME_OVERRIDE=""
usage() {
echo "Usage: $0 --server <url> --token <token> --agent-type <scan-network|metric> [--port <port>] [--hostname <name>]"
exit 1
}
while [[ $# -gt 0 ]]; do
case "$1" in
--server) SERVER="$2"; shift 2 ;;
--port) PORT="$2"; shift 2 ;;
--token) TOKEN="$2"; shift 2 ;;
--agent-type) AGENT_TYPE="$2"; shift 2 ;;
--hostname) HOSTNAME_OVERRIDE="$2"; shift 2 ;;
*) usage ;;
esac
done
[[ -z "$SERVER" || -z "$TOKEN" || -z "$AGENT_TYPE" ]] && usage
# TODO Phase 5 : téléchargement binaire, création config, enregistrement backend, service systemd
echo "Installation agent-${AGENT_TYPE}${SERVER}:${PORT} (non implémenté — Phase 5)"