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
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:
parent
d178a478f0
commit
0c6ebaaf79
4 changed files with 12 additions and 2 deletions
|
@ -1 +0,0 @@
|
||||||
userdel -r plakken
|
|
7
deployment/goreleaser/postremove.sh
Normal file
7
deployment/goreleaser/postremove.sh
Normal 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
|
|
@ -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
|
Loading…
Reference in a new issue