Files
shadowsocks-rust/docker/docker-entrypoint.sh
vndroid 7ce6945c78 Minor update
- Remove useless configuration.
- Docker container running as root user, the program running as nobody user
2022-06-29 16:46:27 +08:00

20 lines
477 B
Bash
Executable File

#!/bin/sh
# vim:sw=4:ts=4:et
set -e
if [ -z "${SS_ENTRYPOINT_QUIET_LOGS:-}" ]; then
exec 3>&1
else
exec 3>/dev/null
fi
if [ "$1" = "sslocal" -o "$1" = "ssserver" -o "$1" = "ssmanager" -o "$1" = "ssservice" ]; then
if [ -f "/etc/shadowsocks-rust/config.json" ]; then
echo >&3 "$0: Configuration complete; ready for start up"
else
echo >&3 "$0: No configuration files found in /etc/shadowsocks-rust, skipping configuration"
fi
fi
exec "$@"