| |
@@ -511,8 +511,28 @@
|
| |
schemadir=/$PACKAGE_NAME/schema
|
| |
|
| |
# default user, group
|
| |
- defaultuser=dirsrv
|
| |
- defaultgroup=dirsrv
|
| |
+ AC_MSG_CHECKING(for --with-username)
|
| |
+ AC_ARG_WITH([username],
|
| |
+ AS_HELP_STRING([--with-username=USERNAME],
|
| |
+ [Name of the user running the instances])
|
| |
+ )
|
| |
+ if test -n "$with_username"; then
|
| |
+ AC_MSG_RESULT([$with_username])
|
| |
+ defaultuser=$with_username
|
| |
+ else
|
| |
+ defaultuser=dirsrv
|
| |
+ fi
|
| |
+ AC_MSG_CHECKING(for --with-groupname)
|
| |
+ AC_ARG_WITH([groupname],
|
| |
+ AS_HELP_STRING([--with-groupname=GROUPNAME],
|
| |
+ [Group of the user running the instances])
|
| |
+ )
|
| |
+ if test -n "$with_groupname"; then
|
| |
+ AC_MSG_RESULT([$with_groupname])
|
| |
+ defaultgroup=$with_groupname
|
| |
+ else
|
| |
+ defaultgroup=dirsrv
|
| |
+ fi
|
| |
|
| |
AC_MSG_CHECKING(for --with-perldir)
|
| |
AC_ARG_WITH([perldir],
|
| |
Bug Description:
On prefix build, the defaultuser/defaultgroup is set to dirsrv.
While the installed build belongs to the local user.
Fix Description:
Define defaultuser/defaultgroup as local user if in prefix deployment.
Set selinux=False if the user is not root
https://pagure.io/389-ds-base/issue/50297
Reviewed by: Mark Reynolds
Platforms tested: F28
Flag Day: no
Doc impact: no