~ubuntu-branches/ubuntu/dapper/openssh/dapper

« back to all changes in this revision

Viewing changes to debian/openssh-client.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2004-10-07 18:03:06 UTC
  • Revision ID: james.westby@ubuntu.com-20041007180306-0l8ii961txetbucx
Tags: 1:3.8.1p1-11ubuntu3
* Nathaniel McCallum:
  - debian/openssh-server.init: pretty initscript
  - debian/control: versioned depend on lsb-base

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
#DEBHELPER#
 
4
 
 
5
if [ "$1" = "purge" ]
 
6
then
 
7
    # Remove all non-conffiles that ssh might create, so that we can
 
8
    # smoothly remove /etc/ssh if and only if the user hasn't dropped some
 
9
    # other files in there. Conffiles have already been removed at this
 
10
    # point.
 
11
    rm -f /etc/ssh/moduli /etc/ssh/primes
 
12
    rm -f /etc/ssh/ssh_known_hosts /etc/ssh/ssh_known_hosts2
 
13
    rmdir --ignore-fail-on-non-empty /etc/ssh
 
14
fi
 
15
 
 
16
if [ "$1" = "purge" ] ; then
 
17
        delgroup --quiet ssh > /dev/null || true
 
18
fi
 
19
 
 
20
exit 0