mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-02 23:25:35 +00:00
misc: Refactor writeEula
This commit is contained in:
1 parent
a26361c79f
commit
aebe35c9d4
2 files changed
+11
-8
No files matched your search
@@ -113,3 +113,12 @@ requireVar() {
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
function writeEula() {
|
||||
if ! echo "# Generated via Docker on $(date)
|
||||
eula=${EULA,,}
|
||||
" > /data/eula.txt; then
|
||||
log "ERROR: unable to write eula to /data. Please make sure attached directory is writable by uid=${UID}"
|
||||
exit 2
|
||||
fi
|
||||
}
|
||||
Reference in new issue
Block a user