From 79ac4120dfe421eac2993bdee8219699dd6efc2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cmbt1=E2=80=9D?= Date: Wed, 15 May 2024 10:48:31 +0000 Subject: [PATCH] Disabled setting external access on Linux --- Build/SQL/DisableExternalAccess.sql | 5 ++++- Build/SQL/EnableExternalAccess.sql | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Build/SQL/DisableExternalAccess.sql b/Build/SQL/DisableExternalAccess.sql index 14d50d76f..4f05b11b2 100644 --- a/Build/SQL/DisableExternalAccess.sql +++ b/Build/SQL/DisableExternalAccess.sql @@ -1 +1,4 @@ -EXEC tSQLt.EnableExternalAccess @try = 0, @enable=0; +IF(EXISTS(SELECT 1 FROM tSQLt.Info() WHERE HostPlatform NOT IN ('Linux'))) +BEGIN + EXEC tSQLt.EnableExternalAccess @try = 0, @enable=0; +END; diff --git a/Build/SQL/EnableExternalAccess.sql b/Build/SQL/EnableExternalAccess.sql index 556413f0e..2b1223f7f 100644 --- a/Build/SQL/EnableExternalAccess.sql +++ b/Build/SQL/EnableExternalAccess.sql @@ -1 +1,4 @@ -EXEC tSQLt.EnableExternalAccess @try = 0, @enable=1; +IF(EXISTS(SELECT 1 FROM tSQLt.Info() WHERE HostPlatform NOT IN ('Linux'))) +BEGIN + EXEC tSQLt.EnableExternalAccess @try = 0, @enable=1; +END;