~ubuntu-branches/ubuntu/gutsy/nut/gutsy

« back to all changes in this revision

Viewing changes to packaging/debian/nut-cgi.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2007-01-16 10:42:36 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070116104236-il549l8x1wmogl3b
Tags: 2.0.5-1
* New upstream release (Closes: #406045, #380304, #399741)
* debian/rules:
  - replaces CHANGES by ChangeLog
  - replace the dummycons installation by dummy-ups
  - integrate the --with-htmlpath option
* debian/nut-cgi.docs: created to install data/html/README
* debian/nut.init: LSB compliance update
* debian/control: add lsb-base (>= 3.0-6) to Depends for LSB compliance

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
# source the debconf library
 
4
. /usr/share/debconf/confmodule
 
5
 
 
6
case "$1" in
 
7
 
 
8
  configure)
 
9
    for file in hosts.conf upsset.conf ; do
 
10
        if [ -f /etc/nut/$file ] ; then
 
11
            chown root:nut /etc/nut/$file
 
12
            chmod 644 /etc/nut/$file
 
13
        fi
 
14
    done
 
15
    ;;
 
16
 
 
17
  abort-upgrade)
 
18
    # do nothing
 
19
    ;;
 
20
 
 
21
  abort-remove)
 
22
    # do nothing
 
23
    ;;
 
24
 
 
25
  abort-deconfigure)
 
26
    # do nothing
 
27
    ;;
 
28
 
 
29
  *)
 
30
    echo "$0: incorrect arguments: $*" >&2
 
31
    exit 1
 
32
    ;;
 
33
 
 
34
esac
 
35
 
 
36
#DEBHELPER#
 
37
 
 
38
exit 0