#!/bin/bash
#***************************************************************#
# ScriptName: docker-entrypoint.sh
# Author: xhy
# Create Date: 2025-09-20 02:00
# Modify Author: xhy
# Modify Date: 2025-09-20 02:01
# Version: v1
#***************************************************************#
set -e

if [ "$LOG_IO_MODE" = "server" ]; then
    exec log.io-server
elif [ "$LOG_IO_MODE" = "client" ]; then
    exec log.io-file-input
else
    echo "Unknown mode: $LOG_IO_MODE"
    exit 1
fi
