secubox-deb/scripts/local-repo-add.sh
CyberMind-FR bf1babb37c Initial commit: SecuBox-DEB migration from OpenWrt to Debian
Includes all package APIs with public dashboard endpoints:
- secubox-system: System Hub with /info, /resources, /security
- secubox-crowdsec: CrowdSec dashboard with /status, /hub, /metrics, actions
- secubox-wireguard: WireGuard VPN with /interfaces, /peers, start/stop
- secubox-netdata: Monitoring with /stats, /processes, /alerts

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-21 09:41:06 +01:00

16 lines
425 B
Bash
Executable File

#!/usr/bin/env bash
# Ajouter un .deb au repo local
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
LOCAL_REPO="${REPO_DIR}/cache/repo"
SUITE="${1:-bookworm}"
shift || true
for DEB in "$@"; do
[[ -f "$DEB" ]] || { echo "SKIP: $DEB (not found)"; continue; }
reprepro -b "${LOCAL_REPO}" includedeb "${SUITE}" "$DEB"
echo "OK: Added $(basename "$DEB") to ${SUITE}"
done