diff --git a/deploy.sh b/deploy.sh index c40875c..457cac5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -62,7 +62,7 @@ fi # Install what we need apt update -y && apt full-upgrade -y apt install --assume-yes \ - git tmux unzip curl vim openjdk-11-jdk xz-utils python3-venv python3-pip \ + git tmux unzip curl vim xz-utils python3-venv python3-pip \ python3-dev apt virtualenv python3-virtualenv libjpeg-dev zlib1g-dev \ fuse g++ gcc curl firewalld automake autoconf libtool \ libcurl3-dev libc-ares-dev zlib1g-dev libncurses-dev make python3-aiohttp \ diff --git a/scripts/deploy_mindustry.sh b/scripts/deploy_mindustry.sh index 33caae8..9945b46 100755 --- a/scripts/deploy_mindustry.sh +++ b/scripts/deploy_mindustry.sh @@ -25,6 +25,8 @@ if [ -z ${mindustry_version} ] || [ "${mindustry_version}" = "latest" ]; then mindustry_version=$(curl -s https://api.github.com/repos/Anuken/Mindustry/releases?per_page=1 | jq -r '.[0]["tag_name"]' | cut -c2-) fi +apt install --assume-yes openjdk-17-jre + # Mindustry mkdir -p /opt/mindustry-${mindustry_version} curl --location https://github.com/Anuken/Mindustry/releases/download/v${mindustry_version}/server-release.jar > /opt/mindustry-${mindustry_version}/mindustry.jar @@ -38,7 +40,7 @@ After=network.target [Service] WorkingDirectory=/var/lib/mindustry -ExecStart=/usr/bin/console2web -a "${systempassword}" -p 62548 /usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar /opt/mindustry-${mindustry_version}/mindustry.jar "config autosave true","config autosaveSpacing 120","host" +ExecStart=/usr/bin/console2web -a "${systempassword}" -p 62548 /usr/bin/java -jar /opt/mindustry-${mindustry_version}/mindustry.jar "config autosave true","config autosaveSpacing 120","host" Restart=on-failure User=${systemuser} diff --git a/scripts/deploy_openspades.sh b/scripts/deploy_openspades.sh index ac6614b..4bbea6d 100755 --- a/scripts/deploy_openspades.sh +++ b/scripts/deploy_openspades.sh @@ -36,9 +36,7 @@ if [ -d /opt/openspades/env ]; then fi virtualenv -p python3 /opt/openspades/env source /opt/openspades/env/bin/activate -pip install -U piqueserver -pip install "twisted<21.0.0" # Twisted 22 removed getPage that piqueserver 1.0.0 depends on -pip install "MarkupSafe==2.0.1" # MarkupSafe removed soft_unicode that piqueserver 1.0.0 depends on +pip install -U git+https://github.com/piqueserver/piqueserver sudo -u ${systemuser} /opt/openspades/env/bin/piqueserver --copy-config sudo -u ${systemuser} sed -i ${systemuserhome}/.config/piqueserver/config.toml \ -e s/"piqueserver instance"/"onFOSS"/ \