Bug 101709 - Syntax error in /etc/init.d/postgresql
Syntax error in /etc/init.d/postgresql
Status: CLOSED RAWHIDE
Product: Red Hat Linux Beta
Classification: Retired
Component: postgresql (Show other bugs)
beta1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Andrew Overholt
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-08-05 17:36 EDT by Nils Philippsen
Modified: 2007-04-18 12:56 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-08-06 07:44:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Nils Philippsen 2003-08-05 17:36:38 EDT
Description of problem:

/etc/init.d/postgresql misses a space in "[ ... ]", gives an error. Patch fixing
this:

--- postgresql.orig     2003-07-30 20:42:45.000000000 +0200
+++ postgresql  2003-08-04 18:41:58.000000000 +0200
@@ -66,7 +66,7 @@
                                                                                
 # Find the name of the script
 NAME=`basename $0`
-if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K"]
+if [ ${NAME:0:1} = "S" -o ${NAME:0:1} = "K" ]
 then
        NAME=${NAME:3}
 fi


Version-Release number of selected component (if applicable):

postgresql-server-7.3.3-11
Comment 1 Andrew Overholt 2003-08-06 07:44:19 EDT
Fixed in rawhide.

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