Update install.sh

This commit is contained in:
Kroese 2024-05-19 19:03:08 +02:00 committed by GitHub
parent 806e5d1bda
commit ed8e00b2b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -656,7 +656,7 @@ updateXML() {
fi
if [ -n "$PASSWORD" ]; then
pass=$(printf '%s' "{$PASSWORD}Password" | iconv -f utf-8 -t utf-16le | base64)
pass=$(printf '%s' "${PASSWORD}Password" | iconv -f utf-8 -t utf-16le | base64)
admin=$(printf '%s' "${PASSWORD}AdministratorPassword" | iconv -f utf-8 -t utf-16le | base64)
sed -i "s/<Value>password<\/Value>/<Value>$admin<\/Value>/g" "$asset"
sed -i "s/<PlainText>true<\/PlainText>/<PlainText>false<\/PlainText>/g" "$asset"