diff --git a/testing/Dockerfile b/testing/Dockerfile index 4ca9eac..c5bf0fa 100644 --- a/testing/Dockerfile +++ b/testing/Dockerfile @@ -29,7 +29,7 @@ ARG INSTALL_SCRIPT=https://gitea.fithwum.tech/fithwum/minecraft/raw/branch/maste # Install Java & Dependencies. RUN apt-get -y update \ - && apt-get install -y --no-install-recommends bzip2 lsb-release jq screen \ + && apt-get install -y --no-install-recommends bzip2 lsb-release jq rcon \ && apt-get -y --fix-broken install \ && apt-get -y autoclean \ && apt-get -y autoremove \ diff --git a/testing/install_script.sh b/testing/install_script.sh index c75731d..f5609b4 100644 --- a/testing/install_script.sh +++ b/testing/install_script.sh @@ -380,6 +380,19 @@ else sleep infinity fi +if [ -f connect.sh ]; then + echo "INFO ! connect.sh found ... moving on." +else + tee connect.sh <<-EOF + #!/bin/bash + # Copyright (c) 2026 fithwum + # All rights reserved + + exec rcon -H 127.0.0.1 -P "$RCON_PORT" -p "$RCON_PASSWORD" + EOF + chmod +x connect.sh +fi + # if [ -f $MC_DIR/start.sh ]; then # echo "INFO ! start.sh found ... moving on." # else