mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-04 07:49:22 +00:00
Set JVM enable-native-access for Java 17+ (#3819)
This commit is contained in:
1 parent
f1cacb7c36
commit
5cbf1e0785
3 files changed
+6
-2
No files matched your search
@@ -28,7 +28,11 @@ shopt -s nullglob
|
||||
|
||||
isDebugging && set -x
|
||||
|
||||
#umask 002
|
||||
if (( $(mc-image-helper java-release) >= 17 )); then
|
||||
MC_IMAGE_HELPER_OPTS+=" --enable-native-access=ALL-UNNAMED"
|
||||
export MC_IMAGE_HELPER_OPTS
|
||||
fi
|
||||
|
||||
export HOME=/data
|
||||
|
||||
log "Running as uid=$(id -u) gid=$(id -g) with /data as '$(ls -lnd /data)'"
|
||||
|
||||
Reference in new issue
Block a user