summaryrefslogtreecommitdiffstats
path: root/database/postgresql/INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'database/postgresql/INSTALL')
-rwxr-xr-xdatabase/postgresql/INSTALL31
1 files changed, 12 insertions, 19 deletions
diff --git a/database/postgresql/INSTALL b/database/postgresql/INSTALL
index e7146d6abe..af73c8bd41 100755
--- a/database/postgresql/INSTALL
+++ b/database/postgresql/INSTALL
@@ -1,21 +1,14 @@
- cd $SOURCE_DIRECTORY &&
- make install &&
- cd contrib/pgcrypto &&
- make install &&
-
- mkdir -p /var/lib/postgres/data &&
- touch /var/log/postgres &&
- chown -R postgres.postgres /var/lib/postgres /var/log/postgres &&
- chmod -R 0700 /var/lib/postgres &&
+cd "$SOURCE_DIRECTORY" &&
+default_install &&
- if echo "$OPTS" | grep -q "with-openssl" && ! [ -e /var/lib/postgres/data/server.crt ]; then
- message "${MESSAGE_COLOR}Please place server key and certificate files${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}server.key and server.crt into /var/lib/postgres/data.${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}See spell apache2, script mksscert.sh, for steps${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}to generate server certificate file.${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}You can use the CA key and certificate generated for${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}apache2, located in /etc/httpd/ssl/ca-{key,certificate}.pem,${DEFAULT_COLOR}"
- message "${MESSAGE_COLOR}to sign the certificate for PostgreSQL.${DEFAULT_COLOR}"
- fi
-# message "${PROBLEM_COLOR}PostgreSQL server will not start without a certificate!${DEFAULT_COLOR}"
+if is_depends_enabled $SPELL openssl; then
+ cd contrib/pgcrypto &&
+ default_install &&
+ cd $SOURCE_DIRECTORY
+fi &&
+if is_depends_enabled $SPELL libxml2; then
+ cd contrib/xml2 &&
+ default_install &&
+ cd $SOURCE_DIRECTORY
+fi