@geekbeer/minion 3.6.3 → 3.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/win/minion-cli.ps1 +4 -2
package/package.json
CHANGED
package/win/minion-cli.ps1
CHANGED
|
@@ -903,7 +903,8 @@ function Invoke-Setup {
|
|
|
903
903
|
Invoke-Nssm remove minion-cloudflared confirm
|
|
904
904
|
$cfConfigDir = Join-Path $TargetUserProfile '.cloudflared'
|
|
905
905
|
$cfConfigPath = Join-Path $cfConfigDir 'config.yml'
|
|
906
|
-
Invoke-Nssm install minion-cloudflared $cfExe
|
|
906
|
+
Invoke-Nssm install minion-cloudflared $cfExe
|
|
907
|
+
Invoke-Nssm set minion-cloudflared AppParameters "tunnel run --config `"$cfConfigPath`""
|
|
907
908
|
# Set USERPROFILE/HOME so cloudflared resolves ~/.cloudflared/ to the target user's profile
|
|
908
909
|
# (NSSM runs as LocalSystem, whose ~ is C:\Windows\system32\config\systemprofile)
|
|
909
910
|
$cfEnvLines = @(
|
|
@@ -1374,7 +1375,8 @@ function Invoke-Configure {
|
|
|
1374
1375
|
$isAdmin = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
|
|
1375
1376
|
if ($isAdmin) {
|
|
1376
1377
|
$cfConfigPath = Join-Path $cfConfigDir 'config.yml'
|
|
1377
|
-
Invoke-Nssm install minion-cloudflared $cfExe
|
|
1378
|
+
Invoke-Nssm install minion-cloudflared $cfExe
|
|
1379
|
+
Invoke-Nssm set minion-cloudflared AppParameters "tunnel run --config `"$cfConfigPath`""
|
|
1378
1380
|
# Set USERPROFILE/HOME so cloudflared resolves ~/.cloudflared/ to the target user's profile
|
|
1379
1381
|
$cfEnvLines = @(
|
|
1380
1382
|
"USERPROFILE=$TargetUserProfile",
|