Codebase list openssl / debian/openssl-0.9.8a-1 debian / openssl.preinst
debian/openssl-0.9.8a-1

Tree @debian/openssl-0.9.8a-1 (Download .tar.gz)

openssl.preinst @debian/openssl-0.9.8a-1raw · history · blame

#!/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#