Add Jenkinsfile for build automation

This commit is contained in:
Gamerboy59 2024-09-08 18:28:03 +02:00 committed by GitHub
commit bf0ece92ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 302 additions and 0 deletions

10
.build/rpxy-start.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Check if rpxy-webui is installed
if dpkg-query -W -f='${Status}' rpxy-webui 2>/dev/null | grep -q "install ok installed"; then
echo "rpxy-webui is installed. Starting rpxy with rpxy-webui"
exec /usr/local/bin/rpxy --enable-webui
else
echo "rpxy-webui is not installed. Starting with default config"
exec /usr/local/bin/rpxy
fi