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:
5ebf24f
)
Make it easier to have deployment-specific db-config additions.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Wed, 12 Nov 2008 22:09:49 +0000
(22:09 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Wed, 12 Nov 2008 22:09:49 +0000
(22:09 +0000)
db-config
patch
|
blob
|
history
diff --git
a/db-config
b/db-config
index
d49ab03
..
f664044
100755
(executable)
--- a/
db-config
+++ b/
db-config
@@
-1037,6
+1037,19
@@
message, please reply so that we may investigate the problem.
for ptype in protocol_types:
AddPCUProtocolType(id, ptype)
+ # Run local db-config snippets
+ try:
+ dir = "/etc/planetlab/db-config.d"
+ files = os.listdir(dir)
+ for file in files:
+ if (file.endswith(".bak") or file.endswith("~") or
+ file.endswith(".rpmsave") or file.endswith(".rpmnew") or
+ file.endswith(".orig")):
+ continue
+ execfile(os.path.join(dir, file))
+ except:
+ pass
+
if __name__ == '__main__':
main()