- export PGPORT
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 12 Dec 2006 22:23:04 +0000 (22:23 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 12 Dec 2006 22:23:04 +0000 (22:23 +0000)
plc.d/crond

index 34f371c..64fa7af 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: crond,v 1.4 2006/05/26 19:57:30 mlhuang Exp $
+# $Id: crond,v 1.5 2006/06/23 20:29:22 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -17,6 +17,9 @@
 # Be verbose
 set -x
 
+# Export so that we do not have to specify -p to psql invocations
+export PGPORT=$PLC_DB_PORT
+
 case "$1" in
     start)
        MESSAGE=$"Starting crond"