-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
SuwayomiServer: Bump Java to v21, code formating #3987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Odd, I tested this by copying the update_script()#!/bin/bash
if dpkg -l | grep -q "openjdk-17-jre"; then
apt-get remove -y openjdk-17-jre
mkdir -p /etc/apt/keyrings
curl -fsSL "https://packages.adoptium.net/artifactory/api/gpg/key/public" | gpg --dearmor >/etc/apt/trusted.gpg.d/adoptium.gpg
echo "deb https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" >/etc/apt/sources.list.d/adoptium.list
apt-get update
apt-get install -y temurin-21-jre
fi
RELEASE=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
if [[ "${RELEASE}" != "$(cat /opt/suwayomi-server_version.txt)" ]] || [[ ! -f /opt/suwayomi-server_version.txt ]]; then
systemctl stop suwayomi-server
cd /tmp
URL=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1)
curl -fsSL "$URL" -o $(basename "$URL")
dpkg -i /tmp/*.deb
systemctl start suwayomi-server
rm -f *.deb
echo "${RELEASE}" >/opt/suwayomi-server_version.txt.txt
fi adding dummy
|
Look this Script really for an fixed package? Dumb. Maybe we need to create an issue there. Jdk21 is jdk21, what an bullshit ^^ |
Yea, thats really weird |
✍️ Description
🔗 Related PR / Issue
Link: #3983
✅ Prerequisites (X in brackets)
🛠️ Type of Change (X in brackets)
README
,AppName.md
,CONTRIBUTING.md
, or other docs.