From a4a1f50881638ad4b3d4ed08fa0d593662419d0d Mon Sep 17 00:00:00 2001
From: Sandeep Thakkar <36132714+sandeep-edb@users.noreply.github.com>
Date: Sat, 30 Nov 2024 18:50:07 +0530
Subject: [PATCH] Update server installer XML: Replace "NT AUTHORITY\SYSTEM"
with it's SID
The ruleList for "NT AUTHORITY\SYSTEM" doesn't work on Windows
system with non-English languages as they are named differently.
Hence, find and use the Security Identifier (SID) for the local system
account instead which are standard and work on all languages
Also, bump package revision for postgresql server installer
DBP-1019, Sandeep Thakkar, Reviewed by Muralikrishna Bandaru
---
server/installer.xml.in | 22 ++++++++++++++++++++--
server/version.txt | 2 +-
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/server/installer.xml.in b/server/installer.xml.in
index 3653b002..00507164 100755
--- a/server/installer.xml.in
+++ b/server/installer.xml.in
@@ -124,6 +124,24 @@ EOF
+
+ "whoami: ${whoami}"
+
+
+
+ ${env(WINDIR)}\System32\whoami
+ /USER /nh
+
+
+ whoami_sid
+ ^.*\s+(S-[0-9-]+)\s*$
+ \1
+ ${program_stdout}
+
+
+ "whoami_sid: ${whoami_sid}"
+
+
@@ -144,7 +162,7 @@ EOF
-
+
@@ -167,7 +185,7 @@ EOF
-
+
diff --git a/server/version.txt b/server/version.txt
index 6dbf6e07..bd692468 100644
--- a/server/version.txt
+++ b/server/version.txt
@@ -1,6 +1,6 @@
pg_major_version=16
pg_minor_version=6
-package_revision=1
+package_revision=2
pgadmin4=8.13
languagepack=4.4-1
stackbuilder=4.2.2