From: Mark Huang Date: Wed, 24 Jan 2007 21:05:30 +0000 (+0000) Subject: cannot run db-config in api script, since the password is being setup manually here X-Git-Tag: planetlab-4_0-rc1~29 X-Git-Url: http://git.onelab.eu/?p=myplc.git;a=commitdiff_plain;h=40608f0c316b6d0a3e5c2dbdfcdb2316e5e8c0eb cannot run db-config in api script, since the password is being setup manually here --- diff --git a/plc.d/api b/plc.d/api index c88ed31..1f9d138 100755 --- a/plc.d/api +++ b/plc.d/api @@ -8,7 +8,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: api,v 1.8 2007/01/19 20:05:05 mlhuang Exp $ # # Source function library and configuration @@ -48,10 +48,6 @@ case "$1" in PLC_API_MAINTENANCE_SOURCES=${PLC_API_MAINTENANCE_SOURCES[*]} plc-config --category=plc_api --variable=maintenance_sources --value="$PLC_API_MAINTENANCE_SOURCES" --save - # Bootstrap the DB - db-config - check - result "$MESSAGE" ;; esac diff --git a/plc.d/db b/plc.d/db index 9e41332..b249ca9 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.2 2006/10/27 20:27:04 mlhuang Exp $ +# $Id$ # # Source function library and configuration @@ -42,6 +42,10 @@ 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