exec&>/dev/null
if[$1-gt1]
then
if[!-d/usr/lib/pgsql/backup];then
mkdir-p/usr/lib/pgsql/backup
fi
cd/usr/bin
cp-fppostmasterpostgres/usr/lib/pgsql/backup
fi
/usr/sbin/preun_servicepostgresql
# $2, holds the number of instances of the target package that will remain# after the operation if $2 is 0, the target package will be removed