~ubuntu-branches/ubuntu/quantal/gcc-defaults/quantal-proposed

« back to all changes in this revision

Viewing changes to .svn/text-base/rebuild-security-providers.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-09-21 17:35:36 UTC
  • mfrom: (1.1.39 sid)
  • Revision ID: package-import@ubuntu.com-20120921173536-rjpjgfdab0oljrpr
Tags: 1.117ubuntu2
Bump versions to 4.7.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/bash
2
 
# Rebuild the list of security providers in classpath.security
3
 
 
4
 
secfiles="/var/lib/security/classpath.security"
5
 
 
6
 
for secfile in $secfiles; do
7
 
  # check if this classpath.security file exists
8
 
  #[ -f "$secfile" ] || continue
9
 
 
10
 
  sed '/^security\.provider\./d' /etc/java/security/classpath.security \
11
 
      > $secfile
12
 
 
13
 
  count=0
14
 
  for provider in $(ls /etc/java/security/security.d)
15
 
  do
16
 
    count=$((count + 1))
17
 
    echo "security.provider.${count}=${provider#*-}" >> "$secfile"
18
 
  done
19
 
done