rust-rpxy/docker-bin/entrypoint.sh
2022-07-09 01:01:00 +09:00

14 lines
277 B
Bash

#!/usr/bin/env bash
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