spiegel/deployment/goreleaser/preinstall.sh
Ada e8196156b6
Some checks failed
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/lint Pipeline failed
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/lint Pipeline was successful
👷 Add release stage
2024-05-25 14:30:09 +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