You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
443 B

#!/bin/bash
## Should be executable N time in a row with same result.
set -e
. lib/common
if [[ $(cat "$HOST_CONFIG_FILE" | shyaml keys) != *"_auth "* ]] &&
! cat "$HOST_CONFIG_FILE" | shyaml get-value users >/dev/null; then
err "No *_auth configured and no users list provided."
exit 1
fi
if ! cat "$HOST_CONFIG_FILE" | shyaml get-value acl; then
err "No acl configured."
exit 1
fi
registry_config_hash || exit 1