Filewatcher File Search
FTP Search
  
Directory 
  
Content Search 
   
pkg://oops_1.5.23.cvs-3_s390.deb:344002/postinst  info  downloads

#!/bin/sh -e

if [ -e /usr/share/debconf/confmodule ]; then
	. /usr/share/debconf/confmodule
else
	echo "confmodule loading error."
fi

db_version 2.0
db_capb backup
db_title OOPS

case "$1" in
	configure)

		db_get oops/httpport
		test -n "$RET" || RET="3128"
		sed -e "s/http_port.*/http_port $RET/" /etc/oops/oops.cfg > /etc/oops/oops.cfg.tmp
		mv -f /etc/oops/oops.cfg.tmp /etc/oops/oops.cfg

		db_get oops/icpport
		test -n "$RET" || RET="3130"
		sed -e "s/icp_port.*/icp_port $RET/" /etc/oops/oops.cfg > /etc/oops/oops.cfg.tmp
		mv -f /etc/oops/oops.cfg.tmp /etc/oops/oops.cfg
	
		db_get oops/format
		case "$RET" in
			true)
				/etc/init.d/oops stop
				su proxy -c "/usr/sbin/oops -z -c /etc/oops/oops.cfg >/dev/null \
				&& echo storage file generated. \
				|| echo error in generation of storage file."
			;;
			false)
				echo oops storages not formatted.
			;;
		esac
		db_stop
		
		#/etc/init.d/oops start || true
		;;
	abort-upgrade|abort-remove|abort-deconfigure)
		;;
esac

#dh:
# Automatically added by dh_installinit
if [ -x "/etc/init.d/oops" ]; then
	update-rc.d oops defaults 30 >/dev/null
	if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
		invoke-rc.d oops start || exit 0
	else
		/etc/init.d/oops start || exit 0
	fi
fi
# End automatically added section

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