plakken/deployement/goreleaser/preinstall.sh
2024-05-11 13:17:33 +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