abcde.1,abcde.conf:
[clinton/abcde.git] / debian / preinst
CommitLineData
c9c2ca27 1#!/bin/sh
2# If:
3# * this isn't an upgrade (a fresh install)
4# * and /etc/cdgrab.conf exists
5# * and /etc/abcde.conf doesn't
6# copy /etc/cdgrab.conf to /etc/abcde.conf
7
8if [ "$1" != "install" ]
9then
10 exit 0
11fi
12if [ "$2" != "" ]
13then
14 exit 0
15fi
16if [ -f /etc/abcde.conf ]
17then
18 exit 0
19fi
20if [ -r /etc/cdgrab.conf ]
21then
22 echo Copying old /etc/cdgrab.conf to /etc/abcde.conf...
23 cp -a /etc/cdgrab.conf /etc/abcde.conf
24 exit 0
25fi
26#DEBHELPER#