Revision 4a34c5cf lib/bootstrap.py
b/lib/bootstrap.py | ||
---|---|---|
116 | 116 |
if not os.path.exists(constants.RAPI_CERT_FILE): |
117 | 117 |
_GenerateSelfSignedSslCert(constants.RAPI_CERT_FILE) |
118 | 118 |
|
119 |
if not os.path.exists(constants.HMAC_CLUSTER_KEY): |
|
120 |
utils.WriteFile(constants.HMAC_CLUSTER_KEY, |
|
121 |
data=utils.GenerateSecret(), |
|
122 |
mode=0400) |
|
123 |
|
|
119 | 124 |
result = utils.RunCmd([constants.NODE_INITD_SCRIPT, "restart"]) |
120 | 125 |
|
121 | 126 |
if result.failed: |
Also available in: Unified diff