18 lines
407 B
Plaintext
18 lines
407 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if [ x$1 = "xpurge" ]; then
|
||
|
echo You may want to delete the generated stunnel.pem file
|
||
|
echo in /etc/ssl/certs.
|
||
|
|
||
|
# Remove chroot dir if present. It may contain logfiles
|
||
|
rm -rf /var/lib/stunnel4 || true
|
||
|
|
||
|
# Log files must be removed on purge (Policy 10.8)
|
||
|
rm -f /var/log/stunnel4/stunnel.log* || true
|
||
|
rmdir /var/log/stunnel4 || true
|
||
|
fi
|
||
|
|
||
|
#DEBHELPER#
|