preinst is in cone 0.89-1.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh
set -e
# Rename the old conffile 'cone.dist' to 'cone' if needed and possible.
# Can be removed after the release of Lenny.
case "$1" in
install|upgrade)
if [ -e /etc/cone.dist ]; then
if [ ! -e /etc/cone ]; then
mv /etc/cone.dist /etc/cone
else
echo 'You have both /etc/cone and /etc/cone.dist. Please remove the'
echo 'second one after merging any local changes to the first one.'
fi
fi
;;
esac
|