mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 11:25:49 +00:00
Update define.sh
This commit is contained in:
parent
29f6d99e6c
commit
2b45f74713
1 changed files with 5 additions and 2 deletions
|
|
@ -1340,11 +1340,14 @@ prepareInstall() {
|
||||||
XHEX=$(printf '%x\n' "$WIDTH")
|
XHEX=$(printf '%x\n' "$WIDTH")
|
||||||
YHEX=$(printf '%x\n' "$HEIGHT")
|
YHEX=$(printf '%x\n' "$HEIGHT")
|
||||||
|
|
||||||
local username="Docker"
|
local username=""
|
||||||
local password="*"
|
local password=""
|
||||||
|
|
||||||
[ -n "$PASSWORD" ] && password="$PASSWORD"
|
[ -n "$PASSWORD" ] && password="$PASSWORD"
|
||||||
|
[ -z "$password" ] && password="admin"
|
||||||
|
|
||||||
[ -n "$USERNAME" ] && username=$(echo "$USERNAME" | sed 's/[^[:alnum:]@!._-]//g')
|
[ -n "$USERNAME" ] && username=$(echo "$USERNAME" | sed 's/[^[:alnum:]@!._-]//g')
|
||||||
|
[ -z "$username" ] && username="Docker"
|
||||||
|
|
||||||
local ip="20.20.20.1"
|
local ip="20.20.20.1"
|
||||||
[ -n "${VM_NET_IP:-}" ] && ip="${VM_NET_IP%.*}.1"
|
[ -n "${VM_NET_IP:-}" ] && ip="${VM_NET_IP%.*}.1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue