harbor/make/photon/registryctl/start.sh
Mac Chaffee ecc8c59101
Use exec in registryctl so signals are passed properly (#16642)
Signed-off-by: Mac Chaffee <machaffe@renci.org>
2022-05-25 14:11:31 +08:00

14 lines
362 B
Bash

#!/bin/sh
set -e
# The directory /var/lib/registry is within the container, and used to store image in CI testing.
# So for now we need to chown to it to avoid failure in CI.
# if [ -d /var/lib/registry ]; then
# chown 10000:10000 -R /var/lib/registry
# fi
/home/harbor/install_cert.sh
exec /home/harbor/harbor_registryctl -c /etc/registryctl/config.yml