preinst is in logtool 1.2.8-10.
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 | #!/bin/sh
for file in blue brightblue brightcyan brightgreen brightmagenta brightred brightwhite brightyellow cyan exclude green include magenta white yellow
do
if [ -L /etc/logtool/$file ]
then
# fix for #858046
rm /etc/logtool/$file
if [ -f /etc/logtool/${file}~ ]
then
mv /etc/logtool/${file}~ /etc/logtool/${file}
fi
fi
dpkg-maintscript-helper mv_conffile /etc/logtool/$file /etc/logtool/${file}.d/$file 1.2.8-9~ -- "$@"
done
|