~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

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