File: dropbear.postrm

package info (click to toggle)
dropbear 2025.89-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,580 kB
  • sloc: ansic: 108,210; sh: 4,765; perl: 774; python: 763; makefile: 715; java: 177
file content (15 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
set -e

if [ "$1" = "purge" ]; then
    if [ -d "/etc/dropbear" ]; then
        rm -rf /etc/dropbear/supervise /etc/dropbear/log/supervise
        rm -f /etc/dropbear/dropbear_rsa_host_key
        rm -f /etc/dropbear/dropbear_dss_host_key
        rm -f /etc/dropbear/dropbear_ecdsa_host_key
        rm -f /etc/dropbear/dropbear_ed25519_host_key
    fi
fi

#DEBHELPER#
exit 0