[Ubuntu] Remove apt sources for Postgresql, Mongodb, Heroku (#3091)

This commit is contained in:
Vladimir Safonkin
2021-04-07 13:57:35 +03:00
committed by GitHub
parent 1a3945d52c
commit f29cc02bef
5 changed files with 26 additions and 5 deletions

View File

@@ -1,11 +1,13 @@
function Get-PostgreSqlVersion {
$postgreSQLVersion = psql --version | Take-OutputPart -Part 2
return "Postgre SQL $postgreSQLVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "postgresql"
return "Postgre SQL $postgreSQLVersion (apt source repository: $aptSourceRepo)"
}
function Get-MongoDbVersion {
$mongoDBVersion = mongod --version | Select-Object -First 1 | Take-OutputPart -Part 2 -Delimiter "v"
return "MongoDB $mongoDBVersion"
$aptSourceRepo = Get-AptSourceRepository -PackageName "mongodb"
return "MongoDB $mongoDBVersion (apt source repository: $aptSourceRepo)"
}
function Get-SqliteVersion {