From 742f0bddeed05fc15d13d8c191858299907052f4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 21 Jul 2026 20:36:00 +0200 Subject: [PATCH] fix: Remove local account command from domain installs (#1931) --- src/answer.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/answer.sh b/src/answer.sh index aa48c719..3f73869a 100644 --- a/src/answer.sh +++ b/src/answer.sh @@ -574,6 +574,18 @@ updateXML() { return 1 fi + if ! sed -i -E ' + /])/ { + :command + N + /<\/SynchronousCommand>/!b command + /Password Never Expires<\/Description>/d + } + ' "$asset"; then + error "Failed to remove local account commands from answer file!" + return 1 + fi + elif [ -n "$workgroup" ]; then if ! updateWorkgroup "$asset" "$workgroup"; then