WIP
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/release Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/pr/release Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful

This commit is contained in:
Ada 2024-05-11 14:26:42 +02:00
parent d178a478f0
commit 0c6ebaaf79
Signed by: ada
GPG key ID: 6A7F898157C6DE6E
4 changed files with 12 additions and 2 deletions

View file

@ -1 +0,0 @@
userdel -r plakken

View file

@ -0,0 +1,7 @@
if getent passwd plakken > /dev/null; then
userdel -r plakken
fi
if getent group plakken > /dev/null; then
groupdel plakken
fi

View file

@ -1,5 +1,9 @@
if ! getent group plakken > /dev/null; then
groupadd -r plakken
fi
if ! getent passwd plakken > /dev/null; then if ! getent passwd plakken > /dev/null; then
useradd -r -d /var/lib/plakken -s /sbin/nologin -U plakken useradd -r -d /var/lib/plakken -s /sbin/nologin -G plakken -c "Plakken server" 111111111111111111 plakken
fi fi
if ! test -d /var/lib/plakken; then if ! test -d /var/lib/plakken; then
mkdir -p /var/lib/plakken mkdir -p /var/lib/plakken