Files
buckit/packaging/scripts/postinstall.sh
abuckit 359e4edef9 fix: resolve CI failures in shfmt and decom tests
- packaging/scripts: convert 4-space indentation to tabs (shfmt)
- docs/distributed/decom*.sh: add consistent trailing slashes to
  mc ls bucket paths so before/after diffs compare identical formats
2026-05-19 11:30:13 -04:00

23 lines
415 B
Bash
Executable File

#!/bin/sh
set -e
if ! getent group buckit >/dev/null 2>&1; then
groupadd --system buckit
fi
if ! getent passwd buckit >/dev/null 2>&1; then
useradd --system \
--gid buckit \
--no-create-home \
--home-dir /var/lib/buckit \
--shell /sbin/nologin \
--comment "Buckit Object Storage" \
buckit
fi
if command -v systemctl >/dev/null 2>&1; then
systemctl daemon-reload >/dev/null 2>&1 || true
fi
exit 0