mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 21:30:41 +00:00
- 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>
20 lines
529 B
Bash
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
|