Added support for Yatopia

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

No files matched your search

+14
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)