X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/0b0a2c117e93900891684df973d09e3a4b302fff..b533cc91878e52c55d3b2154728f25abb203c5ce:/debian/userv-git-daemon.postinst diff --git a/debian/userv-git-daemon.postinst b/debian/userv-git-daemon.postinst index be6c934..5ccaa88 100755 --- a/debian/userv-git-daemon.postinst +++ b/debian/userv-git-daemon.postinst @@ -22,14 +22,14 @@ set -e # You should have received a copy of the GNU General Public License # along with userv-utils; if not, see http://www.gnu.org/licenses/. -GITDUSER=git +GITDUSER=userv-git defaults=/etc/default/userv-git-daemon if test -f $defaults; then . $defaults; fi -if [ "$GITDUSER" ]; then - if id $GITDUSER >/dev/null 2>&1; then exit 0; fi +#DEBHELPER# - adduser --system --group --gecos 'userv git daemon' \ - --home /etc/userv $GITDUSER +if [ "$GITDUSER" ]; then + adduser --system --quiet --group --gecos 'userv git daemon' \ + --home /etc/userv --no-create-home --shell /bin/false $GITDUSER fi