cannot run db-config in api script, since the password is being setup manually here
[myplc.git] / plc.d / db
index b4da453..b249ca9 100755 (executable)
--- a/plc.d/db
+++ b/plc.d/db
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: db,v 1.1 2006/06/23 21:41:42 mlhuang Exp $
+# $Id$
 #
 
 # Source function library and configuration
@@ -22,7 +22,7 @@ export PGPORT=$PLC_DB_PORT
 
 case "$1" in
     start)
-       if [ "$PLC_API_ENABLED" != "1" ] ; then
+       if [ "$PLC_DB_ENABLED" != "1" ] ; then
            exit 0
        fi