Merge setup-nsssysinit.sh improvements from F-12 (#527051)
This commit is contained in:
parent
dfe95ffa5f
commit
cd2a7788c9
@ -35,8 +35,7 @@ case "$1" in
|
|||||||
on | ON )
|
on | ON )
|
||||||
cat ${p11conf} | \
|
cat ${p11conf} | \
|
||||||
sed -e 's/^library=$/library=libnsssysinit.so/' \
|
sed -e 's/^library=$/library=libnsssysinit.so/' \
|
||||||
-e '/^NSS/s/Flags=internal,critical/Flags=internal,moduleDBOnly,critical/' \
|
-e '/^NSS/s/\(Flags=internal\)\(,[^m]\)/\1,moduleDBOnly\2/' > \
|
||||||
-e '/^NSS/s/Flags=internal,FIPS,critical/Flags=internal,moduleDBOnly,FIPS,critical/' > \
|
|
||||||
${p11conf}.on
|
${p11conf}.on
|
||||||
mv ${p11conf}.on ${p11conf}
|
mv ${p11conf}.on ${p11conf}
|
||||||
;;
|
;;
|
||||||
@ -46,8 +45,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
cat ${p11conf} | \
|
cat ${p11conf} | \
|
||||||
sed -e 's/^library=libnsssysinit.so/library=/' \
|
sed -e 's/^library=libnsssysinit.so/library=/' \
|
||||||
-e '/^NSS/s/Flags=internal,moduleDBOnly,critical/Flags=internal,critical/' \
|
-e '/^NSS/s/Flags=internal,moduleDBOnly/Flags=internal/' > \
|
||||||
-e '/^NSS/s/Flags=internal,moduleDBOnly,FIPS,critical/Flags=internal,FIPS,critical/' > \
|
|
||||||
${p11conf}.off
|
${p11conf}.off
|
||||||
mv ${p11conf}.off ${p11conf}
|
mv ${p11conf}.off ${p11conf}
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user