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