OpenC3/cosmos

View on GitHub
openc3-redis/docker-entrypoint.sh

Summary

Maintainability
Test Coverage
#!/bin/sh
set -e

# first arg is `-f` or `--some-option`
# or first arg is `something.conf`
if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
    set -- redis-server "$@"
fi

um="$(umask)"
if [ "$um" = '0022' ]; then
    umask 0077
fi

exec "$@"