ALT Linux Bugzilla
– Attachment 7288 Details for
Bug 34240
При установке пакета 389-ds-base не создается пользователь "dirsrv"
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Add dirsrv user during pre install step
dirsrv_user_add.patch (text/plain), 706 bytes, created by
Stanislav Levin
on 2017-11-27 11:00:31 MSK
(
hide
)
Description:
Add dirsrv user during pre install step
Filename:
MIME Type:
Creator:
Stanislav Levin
Created:
2017-11-27 11:00:31 MSK
Size:
706 bytes
patch
obsolete
>diff --git a/389-ds-base.spec b/389-ds-base.spec >index 914fa98..0d07d28 100644 >--- a/389-ds-base.spec >+++ b/389-ds-base.spec >@@ -208,6 +208,15 @@ subst 's,%_bindir/systemctl,/bin/systemctl,' %buildroot%_sbindir/*-dirsrv > echo "Upgrading 389-ds < 1.2.10.0, manual Offline upgrade is required! > Turn 389-ds off and make 'setup-ds -u' then" > >+%pre >+%define _dirsrv_user dirsrv >+%define _dirsrv_group dirsrv >+%define _dirsrv_home %_localstatedir/dirsrv >+/usr/sbin/groupadd -r -f %_dirsrv_group ||: >+/usr/sbin/useradd -g %_dirsrv_group -c 'user for 389-ds-base' \ >+ -d %_dirsrv_home -s /sbin/nologin -r %_dirsrv_user \ >+ > /dev/null 2>&1 ||: >+ > %post > %post_service %pkgname > %post_service %pkgname-snmp
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34240
: 7288