mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Update MongoDB and PostgreSQL documentation (#993)
* update mongodb and postgresql md * update pg service
This commit is contained in:
committed by
GitHub
parent
1810983a57
commit
52e3e704dd
@@ -3,10 +3,9 @@
|
||||
## Desc: Validate MongoDB
|
||||
################################################################################
|
||||
|
||||
$command = Get-Command -Name 'mongod'
|
||||
if($command)
|
||||
if (Get-Command -Name 'mongod')
|
||||
{
|
||||
Write-Host "mongod is on path"
|
||||
Write-Host 'mongod is on path'
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -14,25 +13,12 @@ else
|
||||
exit 1
|
||||
}
|
||||
|
||||
$command = Get-Command -Name 'mongo'
|
||||
if($command)
|
||||
if (Get-Command -Name 'mongo')
|
||||
{
|
||||
Write-Host "mongo is on path"
|
||||
Write-Host 'mongo is on path'
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'mongo not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "MongoDB"
|
||||
$version = $command.Version.ToString();
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $version<br/>
|
||||
_Environment:_
|
||||
* PATH: contains location of mongo.exe and mongod.exe
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user