Create users in server-common pre hook

The ipaapi user was created in the server package but referenced by a
config file in the server-common package. The server-common package can
be installed without the server package. This caused an error

   Unknown user 'ipaapi'

with systemd-tmpfiles --create. The users are now created in the
server-common package.

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexey Slaykovsky <alexey@slaykovsky.com>
This commit is contained in:
Christian Heimes 2018-04-25 11:33:57 +02:00
parent 04e1ae7bf1
commit 236fa61eeb

View File

@ -1160,6 +1160,8 @@ if [ -e /usr/sbin/ipa_kpasswd ]; then
# END
fi
%pre server-common
# create users and groups
# create kdcproxy group and user
getent group kdcproxy >/dev/null || groupadd -f -r kdcproxy