pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/postgresql-server/files only test for exista...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e08023598c02
branches: trunk
changeset: 462736:e08023598c02
user: grant <grant%pkgsrc.org@localhost>
date: Sat Oct 11 07:05:19 2003 +0000
description:
only test for existance of data directory, rather than the template
databases to determine whether the dbdir has been initialised.
fixes PR pkg/21133 from Thomas T. Thai.
diffstat:
databases/postgresql-server/files/pgsql.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r c9270391e785 -r e08023598c02 databases/postgresql-server/files/pgsql.sh
--- a/databases/postgresql-server/files/pgsql.sh Sat Oct 11 06:46:45 2003 +0000
+++ b/databases/postgresql-server/files/pgsql.sh Sat Oct 11 07:05:19 2003 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.19 2003/07/16 10:35:15 abs Exp $
+# $NetBSD: pgsql.sh,v 1.20 2003/10/11 07:05:19 grant Exp $
#
# PostgreSQL database rc.d control script
#
@@ -54,7 +54,7 @@
pgsql_precmd()
{
- if [ ! -f ${pgsql_home}/data/base/1/PG_VERSION ]; then
+ if [ ! -d ${pgsql_home}/data/base ]; then
pgsql_initdb
fi
}
@@ -66,7 +66,7 @@
if [ ! -x ${initdb} ]; then
return 1
fi
- if [ -f ${pgsql_home}/data/base/1/PG_VERSION ]; then
+ if [ -d ${pgsql_home}/data/base ]; then
@ECHO@ "The PostgreSQL template databases have already been initialized."
@ECHO@ "Skipping database initialization."
else
Home |
Main Index |
Thread Index |
Old Index