Commit 5b099da9 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

ganeti.bootstrap: Set permissions on newly uploaded files

Reviewed-by: amishchenko
parent 699777f2
......@@ -348,9 +348,11 @@ def SetupNodeDaemon(cluster_name, node, ssh_key_check):
"cat > '%s' << '!EOF.' && \n"
"chmod 0400 %s %s && "
"%s restart" %
(constants.SSL_CERT_FILE, noded_cert,
constants.RAPI_CERT_FILE, rapi_cert,
constants.SSL_CERT_FILE, constants.RAPI_CERT_FILE,
result = sshrunner.Run(node, 'root', mycommand, batch=False,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment