rustdesk-server-container/start-hbbs.sh

20 lines
255 B
Bash
Raw Permalink Normal View History

2022-11-18 01:13:19 +02:00
#!/usr/bin/env sh
. /.env
cd /data
ENCRYPT_PARAMS=""
RELAY_PARAM=""
if [ "${ENCRYPTED_ONLY}" = "1" ];then
ENCRYPT_PARAMS="-k _"
fi
if [ ! -z "${RELAY}" ];then
RELAY_PARAM="-r ${RELAY}"
fi
/opt/rustdesk/hbbs ${RELAY_PARAM} ${ENCRYPT_PARAMS}