SHA256
1
0
forked from pool/openCryptoki
Marcus Meissner 2012-12-08 18:58:05 +00:00 committed by Git OBS Bridge
parent bddeada3ae
commit 111fc52ebc

View File

@ -144,19 +144,6 @@ rm -f $RPM_BUILD_ROOT/%_libdir/opencryptoki/methods
# autobuild:/work/cd/lib/misc/group # autobuild:/work/cd/lib/misc/group
# openCryptoki pkcs11:x:64: # openCryptoki pkcs11:x:64:
/usr/sbin/groupadd -g %pkcs11_group_id -r pkcs11 2>/dev/null || true /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 \ /usr/sbin/usermod -G $(/usr/bin/id --groups --name root | /bin/sed \
-e 's/root//' -e ' -e 's/root//' -e '
# add the pkcs group if it is missing # add the pkcs group if it is missing