Filewatcher File Search
FTP Search
  
Directory 
  
Content Search 
   
pkg://nagios-common_1.3-cvs.20050402-2.sarge.2_all.deb:1219662/preinst  info  downloads

#! /bin/sh
# preinst script for nagios
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
#        * <new-preinst> `install'
#        * <new-preinst> `install' <old-version>
#        * <new-preinst> `upgrade' <old-version>
#        * <old-preinst> `abort-upgrade' <new-version>

case "$1" in
    install|upgrade)
	if id nagios >/dev/null 2>&1 ; then
		# We have a nagios user.
		if [ `id nagios -g -n` != "nagios" ] ; then
			addgroup --system nagios || true 
			usermod -g nagios nagios
		fi
	else
		adduser --system --disabled-password --group --no-create-home --home /var/log/nagios --quiet nagios
	fi

	;;
    abort-upgrade)
	;;
    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 0
	;;
esac


exit 0
Results 1 - 1
Help - FTP Sites List - Software Dir.
Searching half a billion files worldwide
© 1997-2009 MARUHN Internet Solutions