Update MongoDB and PostgreSQL documentation (#993)

* update mongodb and postgresql md

* update pg service
This commit is contained in:
Aleksandr Chebotov
2020-06-03 17:35:03 +03:00
committed by GitHub
parent 1810983a57
commit 52e3e704dd
6 changed files with 82 additions and 70 deletions

View File

@@ -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