File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 6464# Clean up DNF when done
6565dnf clean all
6666
67- # Download and install patched knockd
68- curl -fsSL -o /tmp/knock.tar.gz https://github.com/Metalcape/knock/releases/download/0.8.1/knock-0.8.1-$TARGET .tar.gz
69- tar -xf /tmp/knock.tar.gz -C /usr/local/ && rm /tmp/knock.tar.gz
70- ln -s /usr/local/sbin/knockd /usr/sbin/knockd
71- ls -l /usr/local/sbin/knockd
72- setcap cap_net_raw=ep /usr/local/sbin/knockd
67+ cat << EOF > /usr/local/sbin/knockd
68+ #!/bin/sh
69+
70+ echo "Auto-pause (using knockd) is currently unavailable on graalvm image variants"
71+ echo "Consider using a different image variant https://docker-minecraft-server.readthedocs.io/en/latest/versions/java/"
72+ echo "or mc-router's auto scale up/down feature https://github.com/itzg/mc-router#docker-auto-scale-updown"
73+ exit 2
74+ EOF
75+ chmod 755 /usr/local/sbin/knockd
76+ # TODO restore retrieval from https://github.com/Metalcape/knock when tar's "Cannot open: Invalid argument" is solved
7377
7478# Set git credentials globally
7579cat << EOF >> /etc/gitconfig
You can’t perform that action at this time.
0 commit comments