~ubuntu-branches/debian/jessie/webfs/jessie

« back to all changes in this revision

Viewing changes to debian/webfs.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Mats Erik Andersson
  • Date: 2010-11-30 19:51:04 UTC
  • Revision ID: james.westby@ubuntu.com-20101130195104-43hy1s2uxbmr0brx
Tags: 1.21+ds1-7
* Violation of Policy 10.7.3: Config file.
  + Use `ucf' for updating configuration.
  + d/control: Depend on "ucf".
  + d/rules: Install conffile as "/usr/share/webfs/webfsd.conf.auto".
  + d/webfs.postinst: Copy old conffile, do all updating on the file
    "webfs.conf.auto", and register the result using "ucf" and "ucfr".
  + d/webfs.postrm: Purge with support of "ucfr" and "ucf".
  + Closes: #603926.
* FTBFS when using "binutils-gold".
  + Explicitly add "-lgcrypt" to LDFLAGS.
  + debian/patches/63_gnutls.diff: Updated file.
  + Contributed by Roy Jamison. Origin LP: #665276.
  + Closes: #601044.
* debian/webfs.init: Remove `$named' from Required-Start
    and from Required-Stop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
set -e
4
4
 
 
5
CONFIG=/etc/webfsd.conf
 
6
 
5
7
if [ "$1" = "purge" ]; then
6
8
        rm -Rf /var/log/webfs/*
7
9
        if dpkg-statoverride --list /var/log/webfs >/dev/null 2>&1
8
10
        then
9
11
                dpkg-statoverride --remove /var/log/webfs
10
12
        fi
 
13
 
 
14
        # Erase the registration of the only config file,
 
15
        # and the file itself as well as intermediary files.
 
16
        for ext in .ucf-new .ucf-old .ucf-dist
 
17
        do
 
18
                rm -f $CONFIG$ext
 
19
        done
 
20
        rm -f $CONFIG
 
21
        test -x ucfr && \
 
22
                ucfr --purge webfs $CONFIG
 
23
        test -x ucf && \
 
24
                ucf --purge $CONFIG
11
25
fi
12
26
 
13
27
#DEBHELPER#