diff options
author | Mark Wong <mark@2ndQuadrant.com> | 2019-08-27 22:00:08 -0700 |
---|---|---|
committer | Mark Wong <mark@2ndQuadrant.com> | 2019-08-27 22:00:08 -0700 |
commit | 80ea840ac30cc30aef4dd48baef3b4f3d1d97d88 (patch) | |
tree | 5e2edf416737b62ad9226c176c3657cc22d0ab12 | |
parent | 092577800ed12baafa14ab98922af169b9c74631 (diff) |
Update AppRum to set PGHOST
If no PGHOST is in the environment, set it to search multiple unixsock
directories.
-rwxr-xr-x | AppRun | 3 | ||||
-rw-r--r-- | README.appimage | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,8 @@ #!/bin/sh export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" +if [ "x$PGHOST" = "x" ]; then + export PGHOST="/tmp,/var/run/postgresql" +fi ${APPDIR}/usr/bin/pg_top $@ diff --git a/README.appimage b/README.appimage index 79c2e21..fe519e8 100644 --- a/README.appimage +++ b/README.appimage @@ -19,9 +19,12 @@ Use a custom configured PostgreSQL build with minimal options enabled to reduce library dependency support. Part of this reason is to make it easier to include libraries with compatible licences. Part of the reason is to be able to build libpq with minimal development dependencies for PostgreSQL, since the -purpose is just to build a pg_top AppImage. +purpose is just to build a pg_top AppImage. At least version PostgreSQL 10 +should be used so that PGHOST can be defined in the AppRun script to search +multiple potential unixsock directories if no PGHOST is defined in the user's +environment. -At the time of this document, PostgreSQL 9.4 was configured with the following +At the time of this document, PostgreSQL 10 was configured with the following options: ./configure --without-ldap --without-readline --without-zlib --without-gssapi |