postrm 411 Bytes
Newer Older
Steve Kemp's avatar
Steve Kemp committed
1
#!/bin/bash
2

Patrick J Cherry's avatar
Patrick J Cherry committed
3
4
set -e

5
6
7
8
9
if [ "$1" = "purge" ] ; then
  #
  #  Remove the linked certificate if we have one, and the associated TLS file.
  #
  if [ -L /etc/ssl/private/pure-ftpd.pem ]; then
Patrick J Cherry's avatar
Patrick J Cherry committed
10
11
    rm /etc/ssl/private/pure-ftpd.pem
    rm -f /etc/pure-ftpd/conf/TLS
Paul Cammish's avatar
Paul Cammish committed
12
    echo ":HIGH" > /etc/pure-ftpd/conf/TLSCipherSuite
13
  fi
Patrick J Cherry's avatar
Patrick J Cherry committed
14

15
16
17
18
  #
  # And restart pure-ftpd.
  #
  invoke-rc.d pure-ftpd restart 
Patrick J Cherry's avatar
Patrick J Cherry committed
19
20
fi

Patrick J Cherry's avatar
Patrick J Cherry committed
21
#DEBHELPER#
22

Patrick J Cherry's avatar
Patrick J Cherry committed
23
exit 0