plakken/deployement/goreleaser/preinstall.sh
Ada d148b33dc0
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
WIP
2024-05-01 21:13:07 +02:00

8 lines
258 B
Bash

if ! getent passwd plakken > /dev/null; then
useradd -r -d /var/lib/plakken -s /sbin/nologin -U plakken
fi
if ! test -d /var/lib/plakken; then
mkdir -p /var/lib/plakken
chmod 0750 /var/lib/plakken
chown -R plakken:plakken /var/lib/plakken
fi