Add console output to UniFi installer

This commit is contained in:
Manuel Thalmann 2023-07-18 20:26:27 +02:00
parent 3dc8045cde
commit a2a277a15a

View file

@ -1,8 +1,16 @@
#!/bin/pwsh #!/bin/pwsh
Write-Host "Installing UniFi Controller";
Write-Information "Downgrading AutoHotkey";
$ahkID = "AutoHotkey.AutoHotkey"; $ahkID = "AutoHotkey.AutoHotkey";
winget uninstall --accept-source-agreements -e --id "$ahkID"; winget uninstall --accept-source-agreements -e --id "$ahkID";
winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID" --version "1.1.37.00"; winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID" --version "1.1.37.00";
Write-Information "Installing JRE... eww...";
choco install -y temurin11jre; choco install -y temurin11jre;
Write-Information "Installing UniFi Controller";
choco install -y ubiquiti-unifi-controller --ignore-dependencies; choco install -y ubiquiti-unifi-controller --ignore-dependencies;
Write-Information "Upgrading AutoHotkey";
winget uninstall --accept-source-agreements -e --id "$ahkID"; winget uninstall --accept-source-agreements -e --id "$ahkID";
winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID"; winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID";