solstice-ci/crates/orchestrator/packaging/debian/postinst
Till Wegmueller fad8e60ec1
Add Debian packaging support and network configuration enhancements
- Introduce Debian package build script using `cargo-deb` for orchestrator releases.
- Add systemd unit file and post-installation script for automatic service setup.
- Update `compose.yml` with host-only port bindings for Postgres and RabbitMQ.
- Introduce NGINX-based log proxy for orchestrator logs with Traefik support.
- Bump orchestrator version to 0.1.1 and update related Cargo metadata for packaging.
- Add example environment file for orchestrator configuration.

Signed-off-by: Till Wegmueller <toasterson@gmail.com>
2025-11-17 19:57:19 +01:00

20 lines
529 B
Bash

#!/bin/sh
set -e
# Create solstice system user/group if not present
if ! id -u solstice >/dev/null 2>&1; then
adduser --system --group --no-create-home --home /nonexistent --shell /usr/sbin/nologin solstice || true
fi
# Ensure config directory exists
mkdir -p /etc/solstice
chown root:root /etc/solstice
chmod 755 /etc/solstice
# Reload systemd units and enable service
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload || true
systemctl enable solstice-orchestrator.service || true
fi
exit 0