From 40608f0c316b6d0a3e5c2dbdfcdb2316e5e8c0eb Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 24 Jan 2007 21:05:30 +0000 Subject: [PATCH] cannot run db-config in api script, since the password is being setup manually here --- plc.d/api | 6 +----- plc.d/db | 6 +++++- 2 files changed, 6 insertions(+), 6 deletions(-) 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 -- 2.43.0