Another commit.
This commit is contained in:
parent
11375f74fc
commit
c2f5298c99
24
start.ps1
24
start.ps1
@ -4,22 +4,26 @@ $homeServerIp = "192.168.1.106"
|
|||||||
|
|
||||||
while ($true) {
|
while ($true) {
|
||||||
Write-Host "1. SSH" -ForegroundColor Yellow
|
Write-Host "1. SSH" -ForegroundColor Yellow
|
||||||
Write-Host "2. VNC tunnel [5901->5901]" -ForegroundColor Yellow
|
Write-Host "2. Configure Neovim" -ForegroundColor Yellow
|
||||||
Write-Host "3. Deploy ConfigMeta API" -ForegroundColor Yellow
|
|
||||||
Write-Host "4. Deploy ConfigMeta Web App" -ForegroundColor Yellow
|
|
||||||
Write-Host "5. SSH to OpenVPN Azure VM" -ForegroundColor Yellow
|
|
||||||
|
|
||||||
$input_secured = Read-Host "Select (def. 1)" -AsSecureString
|
$input_secured = Read-Host "Select (def. 1)" -AsSecureString
|
||||||
$input = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($input_secured))
|
$input = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($input_secured))
|
||||||
Write-Host
|
Write-Host
|
||||||
|
|
||||||
switch ($input) {
|
switch ($input) {
|
||||||
1 { ssh exide@$homeServerIp -p 60022; break; }
|
1 {
|
||||||
2 { ssh -L 5901:localhost:5901 exide@$homeServerIp -p 60022; break; }
|
ssh exide@$homeServerIp -p 60022;
|
||||||
3 { ssh -L 5901:localhost:5901 exide@$homeServerIp -p 60022 -t 'cd ~/repos/configmaker-reborn/ConfigPro.Api/ && ./deploy.sh'; break; }
|
break;
|
||||||
4 { ssh -L 5901:localhost:5901 exide@$homeServerIp -p 60022 -t 'cd ~/repos/configpro-app-rework/ && ./deploy.sh'; break; }
|
}
|
||||||
5 { ssh exide@20.91.223.192; break; }
|
2 {
|
||||||
default { ssh exide@$homeServerIp -p 60022; break; }
|
winget install Git.Git
|
||||||
|
winget install Neovim.Neovim
|
||||||
|
git clone https://git.exideprod.com/Exide/LazyVim-custom.git $env:LOCALAPPDATA\nvim
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default {
|
||||||
|
Write-Host "Unknown option"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pause
|
pause
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user