Update install.sh

This commit is contained in:
Kroese 2025-04-06 08:35:38 +02:00 committed by GitHub
parent bcf4122c6e
commit 4cbb2fff13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -723,8 +723,7 @@ updateXML() {
sed -i "s/<Username>Docker<\/Username>/<Username>$user<\/Username>/g" "$asset" sed -i "s/<Username>Docker<\/Username>/<Username>$user<\/Username>/g" "$asset"
fi fi
[ -n "$PASSWORD" ] && pass="$PASSWORD" || pass="" [ -n "$PASSWORD" ] && pass="$PASSWORD" || pass="admin"
[ -z "$pass" ] && pass="admin"
pw=$(printf '%s' "${pass}Password" | iconv -f utf-8 -t utf-16le | base64 -w 0) pw=$(printf '%s' "${pass}Password" | iconv -f utf-8 -t utf-16le | base64 -w 0)
admin=$(printf '%s' "${pass}AdministratorPassword" | iconv -f utf-8 -t utf-16le | base64 -w 0) admin=$(printf '%s' "${pass}AdministratorPassword" | iconv -f utf-8 -t utf-16le | base64 -w 0)