Merge branch 'master' into master

This commit is contained in:
Jonas Pedersen 2022-06-07 21:25:05 +02:00 committed by GitHub
commit 227e219f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -2,7 +2,7 @@ FROM python:3-alpine
WORKDIR /usr/src/app
RUN apk add --no-cache curl bash && curl https://raw.githubusercontent.com/christgau/wsdd/v0.5/src/wsdd.py -o wsdd.py && apk del curl
RUN apk add --no-cache curl bash && curl https://raw.githubusercontent.com/christgau/wsdd/v0.7.0/src/wsdd.py -o wsdd.py && apk del curl
copy docker-cmd.sh .

View file

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