Subversion Repositories

?revision_form?Rev ?revision_input??revision_submit??revision_endform?

Rev 2 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 96
Line 21... Line 21...
21
   . /usr/share/debconf/confmodule
21
   . /usr/share/debconf/confmodule
22
22
23
   db_get "lsh-server/purge_hostkeys" || true
23
   db_get "lsh-server/purge_hostkeys" || true
24
24
25
   PURGE_HOSTKEYS="$RET"
25
   PURGE_HOSTKEYS="$RET"
26
else
-
 
27
   . /etc/default/lsh-server
-
 
28
fi
26
fi
29
27
30
case "$1" in
28
case "$1" in
31
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
29
    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
32
30
Line 57... Line 55...
57
    ;;
55
    ;;
58
esac
56
esac
59
57
60
if [ "$1" = "purge" ]; then
58
if [ "$1" = "purge" ]; then
61
   case "$PURGE_HOSTKEYS" in
59
   case "$PURGE_HOSTKEYS" in
62
   true|TRUE|y*|Y*)
60
   true|TRUE|y*|Y*|"")
63
      rm -f /etc/lsh_host_key /etc/lsh_host_key.pub
61
      rm -f /etc/lsh_host_key /etc/lsh_host_key.pub
64
      ;;
62
      ;;
65
   esac
63
   esac
66
64
67
   # trash defaults file
65
   # trash defaults file