diff options
author | 2011-09-18 15:55:46 -0400 | |
---|---|---|
committer | 2011-09-18 15:55:46 -0400 | |
commit | 1876f40d5d60301d910707191cb5f683c48eb580 (patch) | |
tree | 89528f4ef9a31cd3b7b810803bc86f8fd34eb251 | |
parent | Added {,/var}/run creation and updated README to match up with these files. (diff) | |
download | patches-1876f40d5d60301d910707191cb5f683c48eb580.tar.gz patches-1876f40d5d60301d910707191cb5f683c48eb580.tar.bz2 patches-1876f40d5d60301d910707191cb5f683c48eb580.zip |
Drop variable for real paths
-rw-r--r-- | postgresql.init | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/postgresql.init b/postgresql.init index cda6d84..fa0f90c 100644 --- a/postgresql.init +++ b/postgresql.init @@ -52,16 +52,15 @@ checkconfig() { return 1 fi - # Ensures @RUN@/postgresql exists for those who have it on tmpfs. - local runpath="@RUN@/postgresql" - if [ ! -d ${runpath} ] ; then - mkdir -p ${runpath} - chown postgres:postgres ${runpath} + # Ensures @RUN@ exists for those who have it on tmpfs. + if [ ! -d @RUN@ ] ; then + mkdir -p @RUN@ + chown postgres:postgres @RUN@ fi - if [ -e ${runpath}/.s.PGSQL.${PGPORT} ] ; then + if [ -e @RUN@/.s.PGSQL.${PGPORT} ] ; then eerror "Socket conflict." eerror "A server is already listening on:" - eerror " ${runpath}/.s.PGSQL.${PGPORT}" + eerror " @RUN@/.s.PGSQL.${PGPORT}" eerror "HINT: Change PGPORT to listen on a different socket." return 1 fi |