rust-rpxy/docker/entrypoint.sh
2023-01-20 22:12:51 +09:00

14 lines
275 B
Bash

#!/usr/bin/env sh
LOG_FILE=/var/log/rpxy/rpxy.log
if [ -z ${LOG_TO_FILE} ]; then
LOG_TO_FILE=false
fi
if "${LOG_TO_FILE}"; then
echo "rpxy: Start with writing log file"
/run.sh 2>&1 | tee $LOG_FILE
else
echo "rpxy: Start without writing log file"
/run.sh 2>&1
fi