aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/deb/meshbay-hub
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/deb/meshbay-hub')
-rw-r--r--packaging/deb/meshbay-hub/DEBIAN/control17
-rw-r--r--packaging/deb/meshbay-hub/DEBIAN/postinst9
2 files changed, 12 insertions, 14 deletions
diff --git a/packaging/deb/meshbay-hub/DEBIAN/control b/packaging/deb/meshbay-hub/DEBIAN/control
index 2f3541c..07799a1 100644
--- a/packaging/deb/meshbay-hub/DEBIAN/control
+++ b/packaging/deb/meshbay-hub/DEBIAN/control
@@ -1,19 +1,16 @@
Package: meshbay-hub
-Version: 0.2.0
+Version: __VERSION__
Section: net
Priority: optional
Architecture: all
Maintainer: MeshBay Team <team@meshbay.org>
Homepage: https://meshbay.org
-Depends: python3 (>= 3.12),
- python3-meshbay-common (= 0.2.0),
- postgresql,
- python3-fastapi,
- python3-uvicorn,
- adduser
-Recommends: caddy
+Depends: meshbay-common (= __VERSION__), adduser
+Recommends: caddy, postgresql
Description: MeshBay Hub — identity authority and group registry server
MeshBay Hub provides user registration, JWT issuance, group management,
- GEK bundle distribution, revocation, and moderation for MeshBay networks.
+ WebRTC signaling, notifications, and moderation for MeshBay networks.
.
- Runs as a systemd service behind Caddy for HTTPS (auto Let's Encrypt).
+ Installs hub code into the shared venv at /opt/meshbay-common/venv/ and
+ Alembic migrations at /opt/meshbay-hub/migrations/.
+ Runs as a systemd service behind Caddy for HTTPS.
diff --git a/packaging/deb/meshbay-hub/DEBIAN/postinst b/packaging/deb/meshbay-hub/DEBIAN/postinst
index 48921f2..3cf66a9 100644
--- a/packaging/deb/meshbay-hub/DEBIAN/postinst
+++ b/packaging/deb/meshbay-hub/DEBIAN/postinst
@@ -13,15 +13,16 @@ case "$1" in
--gecos "MeshBay service account" meshbay
fi
- # Create data directory
+ # Create data and log directories
install -d -o meshbay -g meshbay -m 750 /var/lib/meshbay/hub
install -d -o meshbay -g meshbay -m 750 /var/log/meshbay
- # Enable and start service
+ # Create config directory (files are placed by the admin, not by us)
+ install -d -m 755 /etc/meshbay
+
+ # Reload systemd if available
if [ -d /run/systemd/system ]; then
systemctl daemon-reload || true
- systemctl enable meshbay-hub.service || true
- systemctl start meshbay-hub.service || true
fi
;;
esac