secubox-deb/packages/secubox-daemon/debian/secubox-daemon.postinst
CyberMind-FR 4901143c78 Reorganize Go daemon and fix module compliance
- 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>
2026-03-25 07:51:17 +01:00

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#