File: preinst

package info (click to toggle)
abcde 2.6-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 464 kB
  • ctags: 109
  • sloc: sh: 3,931; python: 210; perl: 136; makefile: 63
file content (26 lines) | stat: -rw-r--r-- 440 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -e
# If:
# * this isn't an upgrade (a fresh install)
# * and /etc/cdgrab.conf exists
# * and /etc/abcde.conf doesn't
# copy /etc/cdgrab.conf to /etc/abcde.conf

if [ "$1" != "install" ]
then
	exit 0
fi
if [ "$2" != "" ]
then
	exit 0
fi
if [ -f /etc/abcde.conf ]
then
	exit 0
fi
if [ -r /etc/cdgrab.conf ]
then
	echo Copying old /etc/cdgrab.conf to /etc/abcde.conf...
	cp -a /etc/cdgrab.conf /etc/abcde.conf
	exit 0
fi
#DEBHELPER#