File: postgresql-client.prerm.in

package info (click to toggle)
postgresql 7.4.7-6sarge6
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,168 kB
  • ctags: 27
  • sloc: sh: 1,903; makefile: 337; ansic: 204; perl: 69; sed: 6; tcl: 1
file content (20 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash
set -e
#include <genscript.warning>
#include <dumpall_loc.inc>
#include <savebin.inc>

PKGVERSION=%PG_VERSION%

if [ "$1" = remove -o "$1" = upgrade ]
then
    # Save the necessary files, in case the next release
    # needs a dump and restore
    for i in /usr/lib/postgresql/bin/{pg_dump,pg_dumpall,psql}
    do
	save_bin $i
    done
    save_file /etc/postgresql/postgresql.env
fi

#DEBHELPER#