File: openssl.preinst

package info (click to toggle)
openssl 0.9.8c-4etch9
  • links: PTS
  • area: main
  • in suites: etch
  • size: 19,340 kB
  • ctags: 26,395
  • sloc: ansic: 203,603; perl: 18,445; makefile: 10,732; asm: 10,675; cpp: 4,379; sh: 2,925; lisp: 23
file content (36 lines) | stat: -rw-r--r-- 676 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh -e

if [ -L /etc/ssl ]
then
  echo Removing obsolete link /etc/ssl
  rm /etc/ssl
fi
if [ ! -d /etc/ssl ]
then
  echo Creating directory /etc/ssl
  mkdir /etc/ssl
fi
if [ -d /usr/lib/ssl ]
then
  for file in lib certs private
  do
    if [ -e /usr/lib/ssl/$file -a ! -L /usr/lib/ssl/$file ]
    then
      echo Moving $file from /usr/lib/ssl to /etc/ssl
      cp -av /usr/lib/ssl/$file /etc/ssl || true
      rm -fr /usr/lib/ssl/$file
    fi
  done
fi
if [ -L /usr/lib/ssl ]
then
  echo Removeing obsolete link /usr/lib/ssl
  rm /usr/lib/ssl
fi
if [ -e /etc/ssl/lib/openssl.cnf ]
then
  echo Moving openssl.cnf
  mv /etc/ssl/lib/openssl.cnf /etc/ssl/
fi

#DEBHELPER#