git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d605be
)
create planetlab4 db with unicode encoding and owned by pgsqluser
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 16 Nov 2006 18:50:32 +0000
(18:50 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 16 Nov 2006 18:50:32 +0000
(18:50 +0000)
plc.d/postgresql
patch
|
blob
|
history
diff --git
a/plc.d/postgresql
b/plc.d/postgresql
index
de722c8
..
bd5ca7a
100755
(executable)
--- a/
plc.d/postgresql
+++ b/
plc.d/postgresql
@@
-7,7
+7,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: postgresql,v 1.
4.2.3 2006/08/21 21:21:12
mlhuang Exp $
+# $Id: postgresql,v 1.
6 2006/10/27 20:29:20
mlhuang Exp $
#
# Source function library and configuration
#
# Source function library and configuration
@@
-121,7
+121,7
@@
case "$1" in
# Create the databases if necessary
if ! psql -U $PLC_DB_USER -c "" $PLC_DB_NAME >/dev/null 2>&1 ; then
# Create the databases if necessary
if ! psql -U $PLC_DB_USER -c "" $PLC_DB_NAME >/dev/null 2>&1 ; then
- createdb -U postgres $PLC_DB_NAME
+ createdb -U postgres
--encoding=UNICODE --owner=$PLC_DB_USER
$PLC_DB_NAME
psql -U $PLC_DB_USER -f /usr/share/plc_api/$PLC_DB_NAME.sql $PLC_DB_NAME
fi
check
psql -U $PLC_DB_USER -f /usr/share/plc_api/$PLC_DB_NAME.sql $PLC_DB_NAME
fi
check