2
# Rebuild the list of security providers in classpath.security
4
secfiles="/var/lib/security/classpath.security"
6
for secfile in $secfiles; do
7
# check if this classpath.security file exists
8
#[ -f "$secfile" ] || continue
10
sed '/^security\.provider\./d' /etc/java/security/classpath.security \
14
for provider in $(ls /etc/java/security/security.d)
17
echo "security.provider.${count}=${provider#*-}" >> "$secfile"