add package gnupg2 to installation for teams

This commit is contained in:
ansgarz 2022-06-10 12:22:46 +02:00
parent d28518a7f3
commit 83f9a0e40e
2 changed files with 4 additions and 6 deletions

View file

@ -4,10 +4,9 @@ import org.domaindrivenarchitecture.provs.framework.core.Prov
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
fun Prov.installMsTeams() = task {
aptInstall("curl")
cmd("curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -")
aptInstall("curl gnupg2")
cmd("curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -")
cmd("sudo sh -c 'echo \"deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main\" > /etc/apt/sources.list.d/teams.list'")
//cmd("sudo apt update")
cmd("sudo apt-get update") // apt needs update
aptInstall("teams")
//cmd("sudo apt install teams")
}

View file

@ -3,9 +3,8 @@ package org.domaindrivenarchitecture.provs.desktop.infrastructure
import org.domaindrivenarchitecture.provs.test.defaultTestContainer
import org.domaindrivenarchitecture.provs.test.tags.ContainerTest
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
class MsTeamsTest {
class MsTeamsKtTest {
@ContainerTest
fun installMsTeams() {