git://git.onelab.eu
/
plcrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
71cce69
)
remove the trust entry before finishing to preserve security of system.
author
Stephen Soltesz
<soltesz@cs.princeton.edu>
Sun, 5 Jul 2009 00:26:40 +0000
(
00:26
+0000)
committer
Stephen Soltesz
<soltesz@cs.princeton.edu>
Sun, 5 Jul 2009 00:26:40 +0000
(
00:26
+0000)
plcrt.init
patch
|
blob
|
history
diff --git
a/plcrt.init
b/plcrt.init
index
7a55d9b
..
43d56ad
100644
(file)
--- a/
plcrt.init
+++ b/
plcrt.init
@@
-232,7
+232,18
@@
case "$1" in
check_rt_sendmail
check_rt_custom # todo: restart httpd if needed.
check_rt_sendmail
check_rt_custom # todo: restart httpd if needed.
- # TODO: remove external permission
+ # NOTE: remove external permission
+ # This is needed to allow it to run without localhost
+ # TODO: find a better way to do this.
+
+ # remove 'trust' entry from .conf file
+ sed -i -e "s/.*trust//g" $PGDATA/pg_hba.conf.d/${RT3_DB_NAME}.conf
+ if [ -n "$WROTE_PG_CONFIG" ] ; then
+ # NOTE: restart db to enable access by users granted above.
+ service plc restart postgresql
+ MESSAGE=$"Bootstrap RT 3 (please wait...)"
+ dialog "$MESSAGE"
+ fi
result "$MESSAGE"
;;
result "$MESSAGE"
;;