cannot run db-config in api script, since the password is being setup manually here
[myplc.git] / plc.d / db
index 9e41332..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.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