[mod] update wsdd - untested

This commit is contained in:
Andy Bunce 2022-12-31 22:04:45 +00:00
parent 3dc5dd5df0
commit db5defd64d
7 changed files with 265 additions and 12 deletions

24
wsdd/docker-cmd.sh Normal file
View file

@ -0,0 +1,24 @@
#!/usr/bin/env bash
args=
if [ ! -z "${WSDD_ARGS}" ]; then
args=${WSDD_ARGS}
else
if [ ! -z "${HOSTNAME}" ]; then
args+="-n $HOSTNAME "
else
echo "HOSTNAME environment variable must be set."
exit 1
fi
if [ ! -z "${WORKGROUP}" ]; then
args+="-w $WORKGROUP "
fi
if [ ! -z "${DOMAIN}" ]; then
args+="-d $DOMAIN "
fi
fi
exec python wsdd.py ${args}