diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index bc0e82ae..206a1db8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -72,11 +72,17 @@ jobs:
run: |
cd ./target/
[[ -f ~/.m2/repository/apt-cli-1.7.jar ]] || wget --no-clobber --quiet -O ~/.m2/repository/apt-cli-1.7.jar https://github.com/dernasherbrezon/apt-cli/releases/download/apt-cli-1.7/apt-cli.jar
- java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename r2cloud --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
- java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename stretch --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
- java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename buster --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bullseye --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bookworm --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename bionic --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename focal --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename jammy --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
+ echo "building for old OS"
+ cd ..
+ mvn clean
+ mvn -Dmaven.test.skip=true -Djdk.version="r2cloud-jdk (>=17.0.13-1)" package
+ cd ./target/
+ java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename stretch --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
+ java -jar ~/.m2/repository/apt-cli-1.7.jar --url s3://r2cloud --component main --codename buster --gpg-keyname F2DCBFDCA5A70917 save --patterns ./*.deb
+
+
diff --git a/pom.xml b/pom.xml
index c7ff27fc..7b55183b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,6 +28,7 @@
UTF-8
+ openjdk-17-jre-headless
@@ -277,7 +278,7 @@
com.aerse.maven
deb-maven-plugin
- 1.16
+ 1.19
package
@@ -292,19 +293,7 @@
pi
all
-
- >=20240303125106
- >=17.0.5-1
- >=1.10.3
- >=0.6.4
-
- >=8.26
-
- >=2.3.2
- >=14.4.1
-
-
-
+ r2cloud-ui (>=20240303125106), ${jdk.version}, nginx-light(>=1.10.3), rtl-sdr(>=0.6.4), coreutils(>=8.26), libxft2(>=2.3.2), sox(>=14.4.1), wget
false
diff --git a/src/main/deb/lib/systemd/system/r2cloud.service b/src/main/deb/lib/systemd/system/r2cloud.service
index 20d6279d..1dc2878f 100644
--- a/src/main/deb/lib/systemd/system/r2cloud.service
+++ b/src/main/deb/lib/systemd/system/r2cloud.service
@@ -4,7 +4,7 @@ After=time-sync.target
[Service]
WorkingDirectory=/home/pi/r2cloud/
-ExecStart=/home/pi/r2cloud-jdk/bin/java -cp /home/pi/r2cloud/etc:/home/pi/r2cloud/lib/*:/usr/share/java/r2cloud/* -Djava.library.path=/usr/lib/jni -Djradio.metrics.enabled=true -Duser.timezone=UTC -Djava.util.logging.config.file=/home/pi/r2cloud/etc/logging-prod.properties ru.r2cloud.R2Cloud etc/config-prod.properties
+ExecStart=/usr/bin/java -cp /home/pi/r2cloud/etc:/home/pi/r2cloud/lib/*:/usr/share/java/r2cloud/* -Djava.library.path=/usr/lib/jni -Djradio.metrics.enabled=true -Duser.timezone=UTC -Djava.util.logging.config.file=/home/pi/r2cloud/etc/logging-prod.properties ru.r2cloud.R2Cloud etc/config-prod.properties
SyslogIdentifier=r2cloud
SuccessExitStatus=143
Restart=always