aboutsummaryrefslogtreecommitdiff
path: root/debian/preinst
blob: dd7af9a006ce580d5782b60ea8d6e2488d2aa5e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
#
# Debian package preinst

case "$1" in
  install|upgrade)
		   # need to move configuration file to proper directory
		   if [ -f /var/lib/dejagnu/site.exp ]; then
		     if [ ! -d /etc/dejagnu ]; then
		       install -d -g root -m 755 -o root /etc/dejagnu
		     fi
		     mv -f /var/lib/dejagnu/site.exp /etc/dejagnu
		   fi
		   ;;
esac