2024-05-11 14:26:42 +02:00
|
|
|
if ! getent group plakken > /dev/null; then
|
|
|
|
groupadd -r plakken
|
|
|
|
fi
|
|
|
|
|
2024-05-01 21:02:04 +02:00
|
|
|
if ! getent passwd plakken > /dev/null; then
|
2024-05-11 14:26:42 +02:00
|
|
|
useradd -r -d /var/lib/plakken -s /sbin/nologin -G plakken -c "Plakken server" 111111111111111111 plakken
|
2024-05-01 21:02:04 +02:00
|
|
|
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
|