create risotto user

This commit is contained in:
2020-09-19 07:14:27 +02:00
parent 30836804b2
commit 330e639b1c
3 changed files with 14 additions and 1 deletions

12
debian/eole-risotto.postinst vendored Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
if [ "$1" = configure ]; then
# Make sure the administrative user exists
if ! getent passwd risotto > /dev/null; then
adduser --system --home /nonexistent --no-create-home --group --gecos "User for risotto" risotto --quiet
fi
fi
exit 0