spiegel/deployment/goreleaser/preinstall.sh
Ada aac7e7589f
All checks were successful
ci/woodpecker/push/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
ci/woodpecker/tag/release Pipeline was successful
👷 Add release stage
2024-05-25 14:31:32 +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