spiegel/deployment/goreleaser/preinstall.sh
Ada 3a871d4f7c
All checks were successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/tag/lint Pipeline was successful
👷 Add release stage
2024-05-25 14:26:08 +02:00

12 lines
356 B
Bash

if ! getent group spiegel > /dev/null; then
groupadd -r spiegel
fi
if ! getent passwd spiegel > /dev/null; then
useradd -r -d /var/lib/spiegel -s /sbin/nologin -g spiegel -c "Spiegel server" spiegel
fi
if ! test -d /var/lib/spiegel; then
mkdir -p /var/lib/spiegel
chmod 0750 /var/lib/spiegel
chown -R spiegel:spiegel /var/lib/spiegel
fi