mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
rename Take-Part -> Take-OutputPart
This commit is contained in:
@@ -1,19 +1,35 @@
|
||||
function Get-PostgreSqlVersion {
|
||||
$postgreSQLVersion = psql --version | Take-Part -Part 2
|
||||
$postgreSQLVersion = psql --version | Take-OutputPart -Part 2
|
||||
return "Postgre SQL $postgreSQLVersion"
|
||||
}
|
||||
|
||||
function Get-MongoDbVersion {
|
||||
$mongoDBVersion = mongod --version | Select-Object -First 1 | Take-Part -Part 2 -Delimiter "v"
|
||||
$mongoDBVersion = mongod --version | Select-Object -First 1 | Take-OutputPart -Part 2 -Delimiter "v"
|
||||
return "MongoDB $mongoDBVersion"
|
||||
}
|
||||
|
||||
function Get-SqliteVersion {
|
||||
$sqliteVersion = sqlite3 --version | Take-Part -Part 0
|
||||
$sqliteVersion = sqlite3 --version | Take-OutputPart -Part 0
|
||||
return "sqlite3 $sqliteVersion"
|
||||
}
|
||||
|
||||
function Get-MySqlVersion {
|
||||
$mySqlVersion = (mysql --version).Split("/usr/bin/")[1]
|
||||
return "MySQL ($mySqlVersion)"
|
||||
}
|
||||
|
||||
function Build-MySQLSection {
|
||||
$output = ""
|
||||
|
||||
$output += New-MDHeader "MySQL" -Level 4
|
||||
$output += New-MDList -Style Unordered -Lines @(
|
||||
(Get-MySqlVersion),
|
||||
"MySQL Server (user:root password:root)",
|
||||
"MS SQL Server Client Tools"
|
||||
)
|
||||
$output += New-MDCode -Lines @(
|
||||
"MySQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start mysql.service'"
|
||||
)
|
||||
|
||||
return $output
|
||||
}
|
||||
Reference in New Issue
Block a user