File: preinst

package info (click to toggle)
cone 0.75-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 31,040 kB
  • ctags: 13,930
  • sloc: ansic: 90,648; cpp: 79,781; sh: 18,355; perl: 3,218; makefile: 1,611; yacc: 289; sed: 16
file content (20 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# Rename the old conffile 'cone.dist' to 'cone' if needed and possible.
# Can be removed after the release of Lenny.
case "$1" in
  install|upgrade)
    if [ -e /etc/cone.dist ]; then
      if [ ! -e /etc/cone ]; then
	mv /etc/cone.dist /etc/cone
      else
	echo 'You have both /etc/cone and /etc/cone.dist. Please remove the'
	echo 'second one after merging any local changes to the first one.'
      fi
    fi
  ;;
esac

#DEBHELPER#