-if echo "$OPTS" | grep -q "with-openssl" && ! [[ -e
/var/lib/postgres/data/server.crt ]]; then
+if is_depends_enabled $SPELL openssl && ! [[ ! -e $PGSQL_DBPATH/server.crt
]]; then
message "${MESSAGE_COLOR}"
- message "Please place server key and certificate files"
- message "server.key and server.crt into /var/lib/postgres/data."
- message "See spell apache2, script mksscert.sh, for steps"
- message "to generate server certificate file."
- message "You can use the CA key and certificate generated for"
- message "apache2, located in /etc/httpd/ssl/ca-{key,certificate}.pem,"
- message "to sign the certificate for PostgreSQL."
+ message "Please place server key and certificate files server.key "
+ message "and server.crt into $PGSQL_DBPATH/var/lib/postgres/data. See more
about"
+ message "it at http://www.postgresql.org/docs/8.3/static/ssl-tcp.html"
message "${DEFAULT_COLOR}"
fi
diff --git a/database/postgresql/PREPARE b/database/postgresql/PREPARE
index d13b666..721679d 100755
--- a/database/postgresql/PREPARE
+++ b/database/postgresql/PREPARE
@@ -1 +1,8 @@
-config_query PGSQL_CLUSTER "Do you want to apply the PGCluster patch?" n
+config_query PGSQL_CLUSTER "Do you want to apply the PGCluster patch?" n &&
+
+if [[ $PGSQL_CLUSTER == y ]]; then
+ message "${PROBLEM_COLOR}"
+ message "Keep in mind that PGCluster patch and current"
+ message "PostgreSQL version aren't always in sync."
+ message "${DEFAULT_COLOR}"
+fi
[SM-Commit] GIT changes to master grimoire by Vlad Glagolev (e6599417b4c55500b12afe0364ce6cd1cdd1d80f),
Vlad Glagolev, 06/19/2008