File: nws.preinst

package info (click to toggle)
nws 2.11-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,700 kB
  • ctags: 2,820
  • sloc: ansic: 28,849; sh: 3,289; java: 1,205; makefile: 697; perl: 12
file content (19 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh
# postinst script for nws
#
# see: dh_installdeb(1)

set -e

if [ -e /etc/nws.conf -a -e /etc/init.d/nws -a -e /usr/bin/nws_setup ] ; then
 # it is not critical if we fail to stop processes before installation
 # Moreover, having this mandatory makes very difficult to upgrade from versions
 #  with broken nws_setup script...
 set +e
 /etc/init.d/nws stop || true
 set -e
fi

#DEBHELPER#

exit 0