Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 61a753df29148e3dcdf6ee1f37aa438a > scriptlet

postgresql-7.2-12mdk.i586.rpm

PREIN

/bin/sh
# Need to make backups of some executables if an upgrade
# They will be needed to do a dump of the old version's database.
# All output redirected to /dev/null.
if [ $1 -gt 1 ]
then
   mkdir -p /usr/lib/pgsql/backup > /dev/null
   pushd /usr/bin > /dev/null
   cp -fp pg_dump pg_dumpall psql /usr/lib/pgsql/backup > /dev/null
   popd > /dev/null
   pushd /usr/lib > /dev/null
   cp -fp libpq.* /usr/lib/pgsql/backup > /dev/null
   popd > /dev/null
fi