mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-10 12:33:30 +00:00
1. Fixed edge case bug with installPath on Windows Service Manager
2. Updated Agent installer to copy .proxy file if present at install time 3. Updated proxy check on Linux/Gnome to only call gsettings if home folder is present for given user
This commit is contained in:
@@ -18,7 +18,15 @@ limitations under the License.
|
||||
function installService(params)
|
||||
{
|
||||
process.stdout.write('...Installing service');
|
||||
|
||||
var proxyFile = process.execPath;
|
||||
if (process.platform == 'win32')
|
||||
{
|
||||
proxyFile = proxyFile.split('.exe').join('.proxy');
|
||||
}
|
||||
else
|
||||
{
|
||||
proxyFile += '.proxy';
|
||||
}
|
||||
|
||||
var options =
|
||||
{
|
||||
@@ -30,6 +38,7 @@ function installService(params)
|
||||
parameters: params
|
||||
};
|
||||
if (process.platform == 'win32') { options.companyName = ''; }
|
||||
if (require('fs').existsSync(proxyFile)) { options.files = [{ source: proxyFile, newName: process.platform=='win32'?'MeshAgent.proxy':'meshagent.proxy' }]; }
|
||||
|
||||
var i;
|
||||
if ((i=params.indexOf('--_localService="1"'))>=0)
|
||||
|
||||
Reference in New Issue
Block a user