File: postgresql-doc.preinst

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 (10 lines) | stat: -rw-r--r-- 262 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
set -e

if [ "$1" = upgrade ]; then
    # /usr/share/doc/postgresql/html should be a symlink, but doesn't get
    # removed on package upgrade
    [ -L /usr/share/doc/postgresql/html ] && rm -rf /usr/share/doc/postgresql/html || true
fi

#DEBHELPER#