Summary: | postgresql-server init script uses bash extensions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Henning Schild <henning> |
Component: | Current packages | Assignee: | PgSQL Bugs <pgsql-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | Jens.Rutschmann |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Henning Schild
2010-06-26 13:16:36 UTC
> The [[ ]] syntax does not seem to be supported by bash-4.1_p7 (maybe only on
> freebsd).
initscripts are run using /bin/sh, which is not bash on freebsd, and need not be bash on linux either.
(In reply to comment #1) > initscripts are run using /bin/sh, which is not bash on freebsd, and need not > be bash on linux either. Ok than the shell causing the problem is /bin/sh from =sys-freebsd/freebsd-bin-7.2. Still there might be a problem on linux when /bin/sh is not bash. I want to confirm that the init script works with dash after applying the changes from the report. Furthermore I added these lines to checkconfig(): if [ ! -d "/var/run/postgresql" ] ; then mkdir /var/run/postgresql chown "$PGUSER" /var/run/postgresql fi This is needed on my system as I have /var/run mounted on tmpfs. |