1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-06 00:13:33 +00:00

1. Updated console.log to use snprintf to size buffer

2. Fixed code that was accidentally deleted from macOS service-manager
This commit is contained in:
Bryan Roe
2020-09-17 12:49:12 -07:00
parent 1578423f28
commit 20d4345a87
2 changed files with 26 additions and 26 deletions

File diff suppressed because one or more lines are too long

View File

@@ -2306,6 +2306,14 @@ function serviceManager()
plist += ' </dict>\n';
plist += '</plist>';
if (!require('fs').existsSync('/Library/LaunchDaemons/' + options.name + '.plist'))
{
require('fs').writeFileSync('/Library/LaunchDaemons/' + options.name + '.plist', plist);
}
else
{
throw ('Service: ' + options.name + ' already exists');
}
}
if (options.files)