mirror of
https://github.com/buckit-io/buckit.git
synced 2026-09-12 05:49:02 +00:00
359e4edef9
- 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
23 lines
415 B
Bash
Executable File
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
|