5
# In case the user want to purge all files of the fwknop-server package
6
# we must remove manually pid, socket and log files before the main
7
# directories are removed.
8
if [ "$1" = "purge" ]; then
10
# Handle the /var/run/fwknop directory that contains pid and socket
12
if [ -d /var/run/fwknop ]; then
13
find /var/run/fwknop/ -type f -exec rm {} \;
14
find /var/run/fwknop/ -type s -exec rm {} \;
17
# Handle the /var/log/fwknop directory that contains log files
18
if [ -d /var/log/fwknop ]; then
19
find /var/log/fwknop/ -type f -exec rm {} \;
20
if [ -d /var/log/fwknop/errs ]; then
21
find /var/log/fwknop/errs/ -type f -exec rm {} \;
22
rmdir /var/log/fwknop/errs