Last change
on this file since 2188 was
1786,
checked in by broder, 16 years ago
|
Instead of using whatever comes out of uname, explicitly strip the hostname down to the short form
|
-
Property svn:executable set to
*
|
File size:
383 bytes
|
Line | |
---|
1 | #!/usr/bin/perl -0n |
---|
2 | print <<'EOF'; |
---|
3 | <% |
---|
4 | from invirt.config import structs as cfg |
---|
5 | import os |
---|
6 | hostname = os.uname()[1].split('.')[0] |
---|
7 | %> |
---|
8 | EOF |
---|
9 | |
---|
10 | s/^\#?\(xend-relocation-address ''\)/(xend-relocation-address '\${hostname}-internal')/m or die; |
---|
11 | s/^\(xend-relocation-hosts-allow '[^']*'\)/(xend-relocation-hosts-allow '')/m or die; |
---|
12 | s/^\(dom0-min-mem [0-9]*\)/(dom0-min-mem 1536)/m or die; |
---|
13 | print; |
---|
Note: See
TracBrowser
for help on using the repository browser.