rust-rpxy/docker-bin/entrypoint.sh
2023-01-19 22:04:56 +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