diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 index 5cdfddc2..6966527f 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Databases.psm1 @@ -33,6 +33,21 @@ function Get-SqlPackageVersion { return "SqlPackage $sqlPackageVersion" } +function Build-PostgreSqlSection { + $output = "" + + $output += New-MDHeader "PostgreSQL" -Level 4 + $output += New-MDList -Style Unordered -Lines @( + (Get-PostgreSqlVersion ), + "PostgreSQL Server (user:postgres)" + ) + $output += New-MDCode -Lines @( + "PostgreSQL service is disabled by default. Use the following command as a part of your job to start the service: 'sudo systemctl start postgresql.service'" + ) + + return $output +} + function Build-MySQLSection { $output = "" diff --git a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 index 3fac0b71..d824002e 100644 --- a/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 +++ b/images/linux/scripts/SoftwareReport/SoftwareReport.Generator.ps1 @@ -236,12 +236,12 @@ $markdown += New-MDList -Lines $tools -Style Unordered $markdown += New-MDHeader "Databases" -Level 3 $markdown += New-MDList -Style Unordered -Lines (@( - (Get-PostgreSqlVersion), (Get-MongoDbVersion), (Get-SqliteVersion) ) | Sort-Object ) +$markdown += Build-PostgreSqlSection $markdown += Build-MySQLSection $markdown += Build-MSSQLToolsSection