view debian/preinst @ 318:9b79433f0976 noffle

[svn] * src/content.c: Tighten up checks when accessing content vector.
author bears
date Fri, 21 Feb 2003 16:01:28 +0000
parents 85bf9f705e70
children 5ec39beae9c5
line wrap: on
line source

#!/bin/sh
# $Id: preinst 446 2003-02-19 19:06:45Z godisch $

set -e

case "$1" in
install|upgrade)
	# this directory may still exist because of old lock files,
	# make sure the symlink can be installed
	if [ -d /var/spool/noffle/lock ]; then
		if [ -d /var/lock/noffle ]; then
			rm -rf /var/spool/noffle/lock
		else
			mv /var/spool/noffle/lock /var/lock/noffle || :
		fi
	fi
	;;
abort-upgrade)
	;;
*)
	echo "preinst called with unknown argument '$1'" >&2
	exit 1
	;;
esac

exit 0