Update install.sh

This commit is contained in:
Kroese 2025-03-13 12:17:49 +01:00 committed by GitHub
parent c6980d3609
commit adf65cd088
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -681,9 +681,10 @@ updateXML() {
sed -i "s/SERVERSTANDARD<\/Value>/SERVER${EDITION^^}<\/Value>/g" "$asset"
fi
sed -i '/<ProductKey>/,/<\/ProductKey>/d' "$asset"
cat "$asset"
exit
if [ -n "$KEY" ]; then
sed -i '/<ProductKey>/,/<\/ProductKey>/d' "$asset"
sed -i "s/<\/UserData>/ <ProductKey>\n <Key>${KEY}<\/Key>\n <WillShowUI>OnError<\/WillShowUI>\n <\/ProductKey>\n <\/UserData>/g" "$asset"
fi
return 0
}