Added support for Yatopia

#704
This commit is contained in:
Geoff Bourne
2021-02-08 20:42:54 -06:00
parent eb12030975
commit 7d4e4c167e
4 changed files with 61 additions and 1 deletions

View File

@@ -144,6 +144,20 @@ requireVar() {
fi
}
requireEnum() {
var=${1?}
shift
for allowed in $*; do
if [[ ${!var} = $allowed ]]; then
return 0
fi
done
log "ERROR: $var must be set to one of $@"
# exit 1
}
function writeEula() {
if ! echo "# Generated via Docker
# $(date)