20 lines
443 B
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
|