entrypoint.sh 355 Bytes
Newer Older
Bastien Gounon's avatar
Bastien Gounon committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/bash

CACHEDIR_PARAM=""
TOKEN_PARAM=""
PORT_PARAM=""

if [ ! -z "$FLUSHER_DIR" ]; then
    CACHEDIR_PARAM="-cachedir $FLUSHER_DIR"
fi

if [ ! -z "$FLUSHER_PORT" ]; then
    CACHEDIR_PARAM="-port $FLUSHER_PORT"
fi

if [ ! -z "$FLUSHER_TOKEN" ]; then
    CACHEDIR_PARAM="-token $FLUSHER_TOKEN"
fi

Bastien Gounon's avatar
Bastien Gounon committed
19
app $CACHEDIR_PARAM $TOKEN_PARAM $PORT_PARAM
Bastien Gounon's avatar
Bastien Gounon committed
20 21

exit 1