File: 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 (21 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -e
#include <genscript.warning>
#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
    save_bin /usr/lib/postgresql/bin/postgres
    save_bin /usr/lib/postgresql/bin/postmaster
    for i in /etc/postgresql/{pg_hba,pg_ident,postgresql,postmaster}.conf
    do
	save_file $i
    done
fi

#DEBHELPER#