mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-30 16:05:58 -05:00
e29ac0e29d
taking the initial 5 step or more process to take over remote computer to one. a temporary fix to get more in line with other remote support like software. added some scripts linux & windows to quickly setup the whole system on your server.
18 lines
588 B
Batchfile
18 lines
588 B
Batchfile
@echo off
|
|
if "%1"=="" (
|
|
set PORT=443
|
|
) else (
|
|
if not "%1"=="install" set PORT=%1
|
|
)
|
|
|
|
if "%2"=="" (
|
|
set RPORT=80
|
|
) else (
|
|
set RPORT=%2
|
|
)
|
|
|
|
cd /D %HOMEPATH%
|
|
if "%1"=="install" node node_modules/meshcentral/meshcentral.js --install --cert %USERDOMAIN%
|
|
if exist meshcentral-data/webserver-cert-private.key if not "%1"=="install" node node_modules/meshcentral/meshcentral.js --port %PORT% --redirport %RPORT%
|
|
if not exist meshcentral-data/webserver-cert-private.key if not "%1"=="install" node node_modules/meshcentral/meshcentral.js --cert %USERDOMAIN% --port %PORT% --redirport %RPORT%
|