rename isntallFirefox to installPpaFirefox
This commit is contained in:
parent
9d66a17a1b
commit
32840cdd46
3 changed files with 7 additions and 7 deletions
|
@ -86,7 +86,7 @@ fun Prov.provisionIdeDesktop(onlyModules: List<String>? = null) {
|
|||
} else if (onlyModules.contains(DesktopOnlyModule.VERIFY.name.lowercase())) {
|
||||
verifyIdeSetup()
|
||||
} else if (onlyModules.contains(DesktopOnlyModule.FIREFOX.name.lowercase())) {
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,7 +109,7 @@ fun Prov.provisionOfficeDesktop(onlyModules: List<String>? = null) {
|
|||
} else if (onlyModules.contains(DesktopOnlyModule.VERIFY.name.lowercase())) {
|
||||
verifyOfficeSetup()
|
||||
} else if (onlyModules.contains(DesktopOnlyModule.FIREFOX.name.lowercase())) {
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ fun Prov.provisionBasicDesktop(
|
|||
provisionKeys(gpg, ssh)
|
||||
provisionGit(gitUserName ?: whoami(), gitEmail, gpg?.let { gpgFingerprint(it.publicKey.plain()) })
|
||||
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
installGopass()
|
||||
configureGopass(publicGpgKey = gpg?.publicKey)
|
||||
installGopassJsonApi()
|
||||
|
@ -153,6 +153,6 @@ fun Prov.provisionBasicDesktop(
|
|||
configureBash()
|
||||
installVirtualBoxGuestAdditions()
|
||||
} else if (onlyModules.contains(DesktopOnlyModule.FIREFOX.name.lowercase())) {
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.io.File
|
|||
/**
|
||||
* Installs non-snap firefox, removing a firefox snap-installation if existing
|
||||
*/
|
||||
fun Prov.installFirefox() = task {
|
||||
fun Prov.installPpaFirefox() = task {
|
||||
|
||||
// inspired by: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ internal class FirefoxKtTest {
|
|||
fun installFirefox() {
|
||||
// when
|
||||
val result = defaultTestContainer().session {
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
checkPackageInstalled("firefox")
|
||||
}
|
||||
|
||||
|
@ -39,7 +39,7 @@ internal class FirefoxKtTest {
|
|||
/* remove for ssh authentication */
|
||||
PromptSecretSource("Remote password for user $user").secret()
|
||||
).session {
|
||||
installFirefox()
|
||||
installPpaFirefox()
|
||||
firefoxVersion = cmd("apt list firefox --installed").out ?: ""
|
||||
checkPackageInstalled("firefox")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue