view debian/preinst @ 309:21ba70d6eb38 noffle

[svn] removed /var/lock/noffle on purge
author godisch
date Wed, 19 Feb 2003 06:26:09 +0000
parents 3b5b7f3fd71f
children 85bf9f705e70
line wrap: on
line source

#!/bin/sh
# $Id: preinst 434 2003-02-14 13:54:32Z 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