This commit is contained in:
parent
bddeada3ae
commit
111fc52ebc
@ -144,19 +144,6 @@ rm -f $RPM_BUILD_ROOT/%_libdir/opencryptoki/methods
|
||||
# autobuild:/work/cd/lib/misc/group
|
||||
# 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 \
|
||||
-e 's/root//' -e '
|
||||
# add the pkcs group if it is missing
|
||||
|
Loading…
x
Reference in New Issue
Block a user