File: config

package info (click to toggle)
zope-cmfquickinstallertool 1.5.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 172 kB
  • ctags: 120
  • sloc: python: 670; sh: 60; makefile: 38
file content (20 lines) | stat: -rw-r--r-- 405 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/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0

PKG=zope-cmfquickinstallertool
OLDPRODUCT=/var/lib/zope/Products/CMFQuickInstallerTool
HAVE_OLD=0

test -d $OLDPRODUCT && HAVE_OLD=1

if [ "$HAVE_OLD" = "1" ] ; then
    db_fset "${PKG}/oldproduct_in_var" seen false
    db_input high "${PKG}/oldproduct_in_var" || true
    db_go
else
    db_set "${PKG}/oldproduct_in_var" "do nothing"
fi