Merge branch 'master' of github.com:Erope/nezha
This commit is contained in:
commit
ff3e146584
@ -1,5 +1,5 @@
|
|||||||
#Get server and key
|
#Get server and key
|
||||||
param($server, $key)
|
param($server, $key, $tls)
|
||||||
# Download latest release from github
|
# Download latest release from github
|
||||||
$repo = "naiba/nezha"
|
$repo = "naiba/nezha"
|
||||||
# x86 or x64
|
# x86 or x64
|
||||||
@ -59,7 +59,7 @@ Remove-Item "C:\nezha.zip"
|
|||||||
Remove-Item "C:\nssm.zip"
|
Remove-Item "C:\nssm.zip"
|
||||||
Remove-Item "C:\temp" -Recurse
|
Remove-Item "C:\temp" -Recurse
|
||||||
#安装部分
|
#安装部分
|
||||||
C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key -d
|
C:\nezha\nssm.exe install nezha C:\nezha\nezha-agent.exe -s $server -p $key $tls -d
|
||||||
C:\nezha\nssm.exe start nezha
|
C:\nezha\nssm.exe start nezha
|
||||||
#enjoy
|
#enjoy
|
||||||
Write-Host "Enjoy It!" -BackgroundColor DarkGreen -ForegroundColor Red
|
Write-Host "Enjoy It!" -BackgroundColor DarkGreen -ForegroundColor Red
|
||||||
|
Loading…
Reference in New Issue
Block a user