1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Warn instead of failing on domain XML updates (#1977)

This commit is contained in:
Kroese
2026-07-26 02:41:29 +02:00
committed by GitHub
parent 09941ba0f6
commit 30d9858c7d
+6 -6
View File
@@ -798,11 +798,8 @@ updateXML() {
if [ -n "$domain" ]; then
if ! updateDomain "$asset" "$domain" "$user" \
if updateDomain "$asset" "$domain" "$user" \
"$auth_user" "$PASSWORD" "$DOMAIN_OU"; then
error "Failed to add domain configuration to answer file!"
return 1
fi
if ! sed -i -E \
-e '/^[[:space:]]*<LocalAccounts([[:space:]>])/,/^[[:space:]]*<\/LocalAccounts>[[:space:]]*$/d' \
@@ -824,11 +821,14 @@ updateXML() {
return 1
fi
else
warn "failed to add domain configuration to answer file!"
fi
elif [ -n "$workgroup" ]; then
if ! updateWorkgroup "$asset" "$workgroup"; then
error "Failed to add workgroup configuration to answer file!"
return 1
warn "failed to add workgroup configuration to answer file!"
fi
fi