preinst is in phppgadmin 5.1-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 19 20 | #!/bin/sh
set -e
# does not work yet
#case $1 in
# upgrade)
# if dpkg --compare-versions $2 lt 5.0.2 ; then
# # directory changed to symlink, dpkg doesn't like that
# rm -rf /usr/share/phppgadmin/libraries/adodb
# fi
# ;;
#esac
# conffile converted from symlink to plain file in 5.0.3-2
if test -x /usr/bin/dpkg-maintscript-helper && dpkg-maintscript-helper supports mv_conffile 2>/dev/null ; then
test -L /etc/apache2/conf.d/phppgadmin && rm /etc/apache2/conf.d/phppgadmin && \
echo "Moving /etc/phppgadmin/apache.conf to /etc/phppgadmin/apache.conf"
dpkg-maintscript-helper mv_conffile /etc/phppgadmin/apache.conf /etc/apache2/conf.d/phppgadmin 5.0.3-1 -- "$@"
fi
|