~ubuntu-branches/ubuntu/hardy/moin/hardy

« back to all changes in this revision

Viewing changes to debian/moinmoin-common.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-05-14 15:55:15 UTC
  • mfrom: (0.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070514155515-apl4srcch40h9fcx
Tags: 1.5.7-3ubuntu1
* Merge from debian unstable, remaining changes:
  - 11000_show_traceback_toggle.patch: allow for 'show_traceback=0' in
    Moin configurations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
rename_conffile_commit () {
 
6
# syntax: rename_conffile_commit filename
 
7
#
 
8
# Complete the renaming of a conffile "filename" that has been renamed.
 
9
#
 
10
# Call this function from a postinst script after having used
 
11
# rename_conffile_prepare() in the preinst.
 
12
 
 
13
        #local conffile
 
14
 
 
15
        # validate arguments
 
16
        if [ $# -ne 1 ]; then
 
17
                echo "$0: usage error: rename_conffile_commit() called with wrong number of arguments (expected 1, got $#)." >&2
 
18
                exit 2
 
19
        fi
 
20
 
 
21
        _conffile="$1"
 
22
 
 
23
        # If the temporary file created by rename_conffile_prepare() exists, remove
 
24
        # it.
 
25
        if [ -e "$_conffile.moinmoin-common.moved" ]; then
 
26
                rm "$_conffile.moinmoin-common.moved"
 
27
        fi
 
28
}
 
29
 
 
30
#DEBHELPER#
 
31
 
 
32
rename_conffile_commit /etc/moin/moinmaster.py