From: Mark Huang Date: Thu, 18 Jan 2007 22:10:43 +0000 (+0000) Subject: - bootstrap the db in the api script X-Git-Tag: planetlab-4_0-rc1~44 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=6b557afcd50768390765c1ec594e0a6c288f22ae - bootstrap the db in the api script --- diff --git a/plc.d/db b/plc.d/db index b4da453..9e41332 100755 --- a/plc.d/db +++ b/plc.d/db @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: db,v 1.1 2006/06/23 21:41:42 mlhuang Exp $ +# $Id: db,v 1.2 2006/10/27 20:27:04 mlhuang Exp $ # # 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 @@ -42,10 +42,6 @@ DELETE FROM variable WHERE name = 'site_name'; INSERT INTO variable (name, value) VALUES ('site_name', 's:${#PLC_NAME}:"$PLC_NAME";'); EOF - # Bootstrap the DB - db-config - check - result "$MESSAGE" ;; esac