[Et-mgmt-commits-list] [SCM] virt-factory branch, master now at 08aaf946c23e17bb6131f56cdd169f833d9a3c4f
Michael DeHaan
mdehaan at redhat.com
Wed Jun 6 22:31:47 UTC 2007
Hello,
This is an automated email from the git hooks/update script, it was
generated because a ref change was pushed to the repository.
Updating branch, master,
via 08aaf946c23e17bb6131f56cdd169f833d9a3c4f (commit)
from a6feccf0ab4ac45162bb50f56fa9d0d365557408 (commit)
- Log -----------------------------------------------------------------
commit 08aaf946c23e17bb6131f56cdd169f833d9a3c4f
Author: Michael DeHaan <mdehaan at mdehaan.rdu.redhat.com>
Date: Wed Jun 6 18:32:54 2007 -0400
virtfactory entry needs to be matched first, apparently
-----------------------------------------------------------------------
Diffstat:
service/db/vf_create_db | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/service/db/vf_create_db b/service/db/vf_create_db
index 4b5416c..0acba30 100755
--- a/service/db/vf_create_db
+++ b/service/db/vf_create_db
@@ -173,20 +173,21 @@ def fix_postgres_auth():
# read conf file
hba = open(PG_HBA_CONF,"r")
+ found = False
data = hba.read()
lines = data.split("\n")
+ for line in lines:
+ if line.find("virtfactory") != -1:
+ found = True
hba.close()
# rewrite conf file
hba = open(PG_HBA_CONF,"w")
- found = False
+ if not found:
+ hba.write("local all virtfactory md5\n")
for line in lines:
- if line.find("virtfactory") != -1:
- found = True
hba.write(line)
hba.write("\n")
- if not found:
- hba.write("local all virtfactory md5\n")
hba.close()
# restart service
hooks/update
---
Git Source Code Management System
hooks/update refs/heads/master \
a6feccf0ab4ac45162bb50f56fa9d0d365557408 \
08aaf946c23e17bb6131f56cdd169f833d9a3c4f
More information about the Et-mgmt-commits-list
mailing list