Package: adduser
Version: 3.67
Severity: normal

The postgresql-common package does the following to add its system user
"postgres":

    if ! getent passwd postgres > /dev/null; then
        adduser --system --quiet --no-create-home --home /var/lib/postgresql 
--group --gecos "PostgreSQL administrator" pos
    fi

I suppose this is common usage.

If, for whatever reason, the "postgres" group already exists, that call
fails:

    adduser: The group `postgres' already exists.

($? = 1)

As a consequence, the whole package installation fails in this case.
That makes adduser --system --group a rather fragile combination.  I suggest
that the existing group is not really an error and the new user should
simply be added to the existing group.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to