diff --git a/init.sh b/init.sh index b4939b0..51a3408 100755 --- a/init.sh +++ b/init.sh @@ -19,7 +19,7 @@ appSetup () { LDOMAIN=${DOMAIN,,} UDOMAIN=${DOMAIN^^} - URDOMAIN=${UDOMAIN%%.*} + URDOMAIN=${WORKGROUP:-${UDOMAIN%%.*}} # If multi-site, we need to connect to the VPN before joining the domain if [[ ${MULTISITE,,} == "true" ]]; then