mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
fix: allow to set a name via pm2 link
This commit is contained in:
parent
4e79da1caa
commit
ebffb609cf
@ -104,7 +104,7 @@ module.exports = function(CLI) {
|
||||
CLI.prototype.link = function(infos, cb) {
|
||||
var that = this;
|
||||
|
||||
if (infos && !infos.name)
|
||||
if (infos && !infos.machine_name)
|
||||
infos.machine_name = require('os').hostname() + '-' + require('crypto').randomBytes(2).toString('hex')
|
||||
|
||||
KMDaemon.launchAndInteract(cst, infos, function(err, dt) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user