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

Bug#215217: apache: postinst inserts wrong port number



A suggested workaround for this in the apache.config file.  I don't yet
understand how this garbage data is getting *into* the debconf
database, but you certainly want to guard against user error in any
case.

db_input low apache/server-port || true

PORTOK=0
while [ "$PORTOK" = 0 ]
do
	db_get apache/server-port || true
        PORT=$RET
	if perl -e"'$PORT' gt 0 && '$PORT' lt 65536 && exit 0; exit 1;"
	then
		PORTOK=1
	else
		db_input high apache/server-port || true
	fi
done

-- 
Steve Langasek
postmodern programmer

Attachment: signature.asc
Description: Digital signature


Reply to: