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:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user