harbor/make/photon/registry/entrypoint.sh

10 lines
154 B
Bash
Raw Normal View History

2017-07-24 12:21:38 +02:00
#!/bin/sh
set -e
case "$1" in
*.yaml|*.yml) set -- registry serve "$@" ;;
serve|garbage-collect|help|-*) set -- registry "$@" ;;
esac
exec "$@"