view debian/preinst @ 500:614a3177b15c noffle tip

Add mail-from option. Some modern mail systems will try and ensure the sender email is a legitimate address. Which will fail if there isn't such an address.
author Jim Hague <jim.hague@acm.org>
date Wed, 14 Aug 2013 12:04:39 +0100
parents a85a0af33718
children
line wrap: on
line source

#!/bin/sh
# $Id: preinst 593 2003-06-25 16:27:55Z godisch $

set -e

mkdir -p /etc/news

if [ ! -e /etc/news/noffle.conf ]; then
	if [ -e /etc/noffle/conf ]; then
		mv -fb /etc/noffle/conf /etc/news/noffle.conf || true
	elif [ -e /etc/noffle.conf ]; then
		mv -fb /etc/noffle.conf /etc/news/noffle.conf || true
	fi
fi

if [ -e /etc/noffle/conf.debian -a ! -e /etc/default/noffle ]; then
	mv -fb /etc/noffle/conf.debian /etc/default/noffle || true
fi

if [ -d /etc/noffle ]; then
	mv -fb /etc/noffle /etc/news/noffle.old || true
fi

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 || true
	fi
fi

exit 0