[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debiconf-ized zope packages postinst



hi gregor,

	i just modified the postinst and postrm scripts of zope-popyda
to restart zope on install (as your zope-pygresqlda does) but using
debconf. i use a global configuration option called 

  shared/zope/restart_on_install

i attach to this mail the scripts, maybe we can arrange for all the 
zope-product packages to use that variable.

ciao,
federico
 
-- 
Federico Di Gregorio
MIXAD LIVE System Programmer                           fog@mixadlive.com
Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
  Those who do not study Lisp are doomed to reimplement it. Poorly.
                                      -- from Karl M. Hegbloom .signature
Template: shared/zope/restart_on_install
Type: boolean
Default: true
Description: Restart Zope on new/updated package?
 For Zope to recognize the new/updated package (i.e., product), it will 
 need to be restarted. Answer `yes' if you want to automatically restart 
 Zope every time a new package is installed or an old one upgraded or
 removed.
#!/bin/sh -e

. /usr/share/debconf/confmodule

db_input medium shared/zope/restart_on_install || true
db_go
#!/bin/sh -e

. /usr/share/debconf/confmodule

db_get shared/zope/restart_on_install
if [ "$RET" = "true" ]; then
    /etc/init.d/zope restart
fi

#DEBHELPER#
#!/bin/sh -e

. /usr/share/debconf/confmodule

#DEBHELPER#


Reply to: