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