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

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