mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
73dea9df51
commit
7a5eee5e52
1 changed files with 4 additions and 3 deletions
|
|
@ -624,7 +624,7 @@ updateXML() {
|
|||
|
||||
local asset="$1"
|
||||
local language="$2"
|
||||
local culture region pass keyboard
|
||||
local culture region admin pass keyboard
|
||||
|
||||
culture=$(getLanguage "$language" "culture")
|
||||
|
||||
|
|
@ -656,8 +656,9 @@ updateXML() {
|
|||
fi
|
||||
|
||||
if [ -n "$PASSWORD" ]; then
|
||||
pass=$(printf '%s' "$PASSWORD" | base64)
|
||||
sed -i "s/<Value>password<\/Value>/<Value>$pass<\/Value>/g" "$asset"
|
||||
pass=$(printf '%s' "{$PASSWORD}Password" | base64)
|
||||
admin=$(printf '%s' "${PASSWORD}AdministratorPassword" | base64)
|
||||
sed -i "s/<Value>password<\/Value>/<Value>$admin<\/Value>/g" "$asset"
|
||||
sed -i "s/<PlainText>true<\/PlainText>/<PlainText>false<\/PlainText>/g" "$asset"
|
||||
sed -z "s/<Password>...........<Value \/>/<Password>\n <Value>$pass<\/Value>/g" -i "$asset"
|
||||
sed -z "s/<Password>...............<Value \/>/<Password>\n <Value>$pass<\/Value>/g" -i "$asset"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue