mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
Update install.sh
This commit is contained in:
parent
c6980d3609
commit
adf65cd088
1 changed files with 4 additions and 3 deletions
|
|
@ -681,9 +681,10 @@ updateXML() {
|
||||||
sed -i "s/SERVERSTANDARD<\/Value>/SERVER${EDITION^^}<\/Value>/g" "$asset"
|
sed -i "s/SERVERSTANDARD<\/Value>/SERVER${EDITION^^}<\/Value>/g" "$asset"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i '/<ProductKey>/,/<\/ProductKey>/d' "$asset"
|
if [ -n "$KEY" ]; then
|
||||||
cat "$asset"
|
sed -i '/<ProductKey>/,/<\/ProductKey>/d' "$asset"
|
||||||
exit
|
sed -i "s/<\/UserData>/ <ProductKey>\n <Key>${KEY}<\/Key>\n <WillShowUI>OnError<\/WillShowUI>\n <\/ProductKey>\n <\/UserData>/g" "$asset"
|
||||||
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue