forked from pool/openCryptoki
- remove -o from groupadd
- fixed sed script to not a grouplist with leading , OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=8
This commit is contained in:
parent
4ce1688b56
commit
bddeada3ae
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 8 18:51:31 UTC 2012 - meissner@suse.com
|
||||
|
||||
- remove -o from groupadd
|
||||
- fixed sed script to not a grouplist with leading ,
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 27 06:59:49 UTC 2011 - coolo@suse.com
|
||||
|
||||
|
@ -145,12 +145,16 @@ rm -f $RPM_BUILD_ROOT/%_libdir/opencryptoki/methods
|
||||
# openCryptoki pkcs11:x:64:
|
||||
/usr/sbin/groupadd -g %pkcs11_group_id -r pkcs11 2>/dev/null || true
|
||||
# add root to group pkcs11 to enable root to run pkcsconf
|
||||
/usr/bin/id --groups --name root | /bin/sed -e 's/root//'
|
||||
|
||||
echo $(/usr/bin/id --groups --name root | /bin/sed \
|
||||
-e 's/root//' -e '
|
||||
# add the pkcs group if it is missing
|
||||
/(^| )pkcs11( |$)/!s/$/ pkcs11/
|
||||
# replace spaces by commas
|
||||
y/ /,/
|
||||
# replace spaces by commas
|
||||
s/^,//
|
||||
'),pkcs11 root
|
||||
|
||||
/usr/sbin/usermod -G $(/usr/bin/id --groups --name root | /bin/sed \
|
||||
@ -159,6 +163,8 @@ y/ /,/
|
||||
/(^| )pkcs11( |$)/!s/$/ pkcs11/
|
||||
# replace spaces by commas
|
||||
y/ /,/
|
||||
# remove leading , if present
|
||||
s/^,//
|
||||
'),pkcs11 root
|
||||
|
||||
%post
|
||||
|
Loading…
Reference in New Issue
Block a user