v2ray-core/tools/docker/docker-entrypoint.sh

11 lines
131 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$1" = 'v2ray' ]; then
if [ ! -e "server-cfg.json" ]; then
./gen-server-cfg.sh
fi
fi
exec "$@"