Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 31461 - The postinstall script is wrong.
The postinstall script is wrong.
Product: Red Hat Linux
Classification: Retired
Component: caching-nameserver (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-03-11 17:24 EST by hjl
Modified: 2005-10-31 17:00 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-12 14:20:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description hjl 2001-03-11 17:24:45 EST
The postinstall script does

if ! grep -q "^key" /etc/named.conf; then
  KEY=`cat /etc/rndc.conf |grep secret |head -n1`";"
  if [ -n "$KEY" ]; then
cat >>/etc/named.conf <<EOF
key "key" {
        algorithm hmac-md5;

The problem is

# cat /etc/rndc.conf |grep secret |head -n1

It puts `;;' in /etc/named.conf. I got

Mar 11 13:51:53 ocean named[3848]: loading configuration from
Mar 11 13:51:53 ocean named[3848]: /etc/named.conf:56: parse error near ;
Mar 11 13:51:53 ocean named[3848]: loading configuration: failure
Mar 11 13:51:53 ocean named[3848]: exiting (due to fatal error)

Removing the extra `;' fixed my problem.
Comment 1 Pekka Savola 2001-03-12 10:13:34 EST
In 7.1-2 too.  This should _definitely_ be fixed.
Comment 2 Glen Foster 2001-03-12 14:20:35 EST
This defect considered MUST-FIX (show-stopper) for Florence GOLD
Comment 3 Preston Brown 2001-03-13 18:10:27 EST
fixed in caching-nameserver-7.1-3 and later.

Note You need to log in before you can comment on or make changes to this bug.