Browse Source

undo if/else

master
Sander Bollen 2 years ago
parent
commit
c373fd500f
  1. 26
      entrypoint.sh

26
entrypoint.sh

@ -1,20 +1,12 @@
#!/bin/bash
set -e
# if a command was specified, we run that command. E.g. helpful when we do
# docker run -it <container> /bin/bash
if [ "${1}" ]
then
exec "$@"
# otherwise we attempt to run fahclient.
else
/opt/fahclient/FAHClient \
--user="${USER}" \
--team="${TEAM}" \
--passkey="${PASSKEY}" \
--gpu="${ENABLE_GPU}" \
--smp="${ENABLE_SMP}" \
--power=full \
--gui-enabled=false \
"${@}"
fi
/opt/fahclient/FAHClient \
--user="${USER}" \
--team="${TEAM}" \
--passkey="${PASSKEY}" \
--gpu="${ENABLE_GPU}" \
--smp="${ENABLE_SMP}" \
--power=full \
--gui-enabled=false \
"${@}"
Loading…
Cancel
Save