mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 20:42:26 +00:00
moved fs.chmod into openssl rsa callback function
This commit is contained in:
parent
e59bcad460
commit
768644c314
@ -108,10 +108,10 @@ var create_ssh_key = function (prefix) {
|
||||
openssl.exec('req', opts, function (err, buffer) {
|
||||
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));
|
||||
fs.chmod(opts.keyout, '0600', function (err) {
|
||||
if (err) console.log(clr.red(err));
|
||||
});
|
||||
});
|
||||
});
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user