removed GO statements

This commit is contained in:
2024-03-07 17:13:13 +01:00
parent ca816b2a5c
commit 4d0e306b03
3 changed files with 4 additions and 5 deletions

View File

@@ -537,7 +537,7 @@ if($true -eq $instanceReachable){
$query = $query.Replace("`$fqdn", $fqdn.HostName)
$query = $query.Replace("`$alias", $alias)
Invoke-Sqlcmd -ServerInstance $SqlInstance -Database master -Query $query -Credential
Invoke-Sqlcmd -ServerInstance $SqlInstance -Database master -Query $query
Write-Output "Executed 20_update_system_site_centrale.sql"
##step 21: update Point_of_sale on the central
@@ -553,6 +553,7 @@ if($true -eq $instanceReachable){
if($macs.Count -gt 1){
#we have several mac addresses, unable to define which one should be used in point_of_sale
Write-Error "Several mac addresses are active, no clue which one to save in Point_of_sale"
exit 42102
}
else{
$query=Get-Content -Path .\21_update_point_of_sale_centrale.sql