mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 05:46:16 +00:00
moved fs.chmod into openssl rsa callback function
This commit is contained in:
parent
e59bcad460
commit
768644c314
@ -109,11 +109,11 @@ var create_ssh_key = function (prefix) {
|
||||
if (err) console.log(clr.red(err));
|
||||
openssl.exec('rsa', { in: opts.keyout, out: opts.keyout }, function (err, buffer) {
|
||||
if (err) console.log(clr.red(err));
|
||||
});
|
||||
fs.chmod(opts.keyout, '0600', function (err) {
|
||||
if (err) console.log(clr.red(err));
|
||||
});
|
||||
});
|
||||
});
|
||||
return {
|
||||
key: opts.keyout,
|
||||
pem: opts.out,
|
||||
|
Loading…
Reference in New Issue
Block a user