mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-10 05:13:38 +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:
File diff suppressed because one or more lines are too long
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user