mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Removed discovery scripts
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
|
||||
|
||||
# This script checks if SQL Server is installed on Windows
|
||||
|
||||
[bool] $SqlInstalled = $false
|
||||
$regPath = 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server'
|
||||
if (Test-Path $regPath) {
|
||||
$inst = (get-itemproperty $regPath).InstalledInstances
|
||||
$SqlInstalled = ($inst.Count -gt 0)
|
||||
}
|
||||
Write-Output $SqlInstalled
|
||||
@@ -1,6 +0,0 @@
|
||||
if ! systemctl is-active --quiet mssql-server.service; then
|
||||
echo "False"
|
||||
exit
|
||||
else
|
||||
echo "True"
|
||||
fi
|
||||
Reference in New Issue
Block a user