mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 15:37:03 +00:00
- Move Go mesh daemon code to daemon/ directory - secuboxd mesh daemon with mDNS discovery - secuboxctl CLI management tool - c3box situational awareness dashboard - GK-HAM-2025 ZKP authentication system - Add Debian packaging for secubox-daemon and secubox-c3box - Fix maintainer in 12 packages to Gerald KERMA <devel@cybermind.fr> - secubox-backup, device-intel, mesh, meshname, p2p - roadmap, soc, tor, vortex-dns, vortex-firewall - watchdog, zkp - Add JWT authentication to secubox-mesh API Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
805 B
Bash
29 lines
805 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
case "$1" in
|
|
configure)
|
|
# Create secubox user if absent
|
|
if ! id -u secubox >/dev/null 2>&1; then
|
|
adduser --system --group --no-create-home --home /var/lib/secubox secubox
|
|
fi
|
|
|
|
# Create runtime directories
|
|
install -d -o secubox -g secubox -m 750 /run/secuboxd
|
|
install -d -o secubox -g secubox -m 750 /var/lib/secuboxd
|
|
|
|
# Create config from example if not exists
|
|
if [ ! -f /etc/secubox/secuboxd.yaml ]; then
|
|
cp /etc/secubox/secuboxd.yaml.example /etc/secubox/secuboxd.yaml
|
|
chmod 640 /etc/secubox/secuboxd.yaml
|
|
chown root:secubox /etc/secubox/secuboxd.yaml
|
|
fi
|
|
|
|
# Enable and start service
|
|
systemctl daemon-reload
|
|
systemctl enable secuboxd.service
|
|
systemctl start secuboxd.service || true
|
|
;;
|
|
esac
|
|
#DEBHELPER#
|