gnutella-gtk-docker/docker/docker-entrypoint.sh

14 lines
416 B
Bash
Raw Normal View History

2020-03-15 23:32:54 +00:00
#!/bin/bash
#
2021-04-25 23:29:16 +00:00
export HOME=/app
if [ "${ENABLE_SOCAT_TUNNEL}" = "TRUE" ]; then
socat TCP-LISTEN:${SOCAT_PORT},fork UNIX-CONNECT:/home/nya/.gtk-gnutella/ipc/socket &
fi
if [ "${HEADLESS}" = "TRUE" ]; then
gtk-gnutella --topless --log-stderr /dev/null --log-stdout /dev/null
else
echo "nyanya"
gtk-gnutella --geometry ${DISPLAY_WIDTH}x${DISPLAY_HEIGHT} --log-stderr /dev/null --log-stdout /dev/null
sleep 2323;
fi