Verified Commit 6415a1ca authored by AtjonTV's avatar AtjonTV

Beta 4 - Fix Proxy Install; Move versions out; Fix Installs

parent ac590055
......@@ -19,14 +19,13 @@ mkdir /opt/aaab-master
mkdir /opt/aaab-master/{bin,logs}
cp master/config.konf /opt/aaab-master/config.konf
# AAAB-Master Setup (3.18.3)
VERSION=3.18.3
JOBID=5597
# AAAB-Master Setup
source versions.sh
curl https://gitlab.atvg-studios.at/atvg-studios/aaab-project/aaab-center/-/jobs/$JOBID/artifacts/raw/build/libs/aaab-center-$VERSION-all.jar?inline=false -o aaab-$VERSION.jar
curl https://gitlab.atvg-studios.at/atvg-studios/aaab-project/aaab-center/-/jobs/$AAABCIJOB/artifacts/raw/build/libs/aaab-center-$AAABVERSION-all.jar?inline=false -o aaab-$AAABVERSION.jar
mv aaab-$VERSION.jar /opt/aaab-master/bin
ln -s /opt/aaab-master/bin/aaab-$VERSION.jar /opt/aaab-master/aaab.jar
mv aaab-$AAABVERSION.jar /opt/aaab-master/bin
ln -s /opt/aaab-master/bin/aaab-$AAABVERSION.jar /opt/aaab-master/aaab.jar
# Service Setup
cp master/aaab.service /opt/aaab-master
......
......@@ -5,21 +5,20 @@ mkdir /opt/aaab-proxy
mkdir /opt/aaab-proxy/{bin,logs}
cp proxy/config.konf /opt/aaab-proxy/config.konf
# AAAB-Proxy Setup (3.18.3)
VERSION=3.18.3
JOBID=5597
# AAAB-Proxy Setup
source versions.sh
curl https://gitlab.atvg-studios.at/atvg-studios/aaab-project/aaab-center/-/jobs/$JOBID/artifacts/raw/build/libs/aaab-center-$VERSION-all.jar?inline=false -o aaab-$VERSION.jar
curl https://gitlab.atvg-studios.at/atvg-studios/aaab-project/aaab-center/-/jobs/$AAABCIJOB/artifacts/raw/build/libs/aaab-center-$AAABVERSION-all.jar?inline=false -o aaab-$AAABVERSION.jar
mv aaab-$VERSION.jar /opt/aaab-proxy/bin
ln -s /opt/aaab-proxy/bin/aaab-$VERSION.jar /opt/aaab-proxy/aaab.jar
mv aaab-$AAABVERSION.jar /opt/aaab-proxy/bin
ln -s /opt/aaab-proxy/bin/aaab-$AAABVERSION.jar /opt/aaab-proxy/aaab.jar
# Service Setup
cp proxy/aaab.service /opt/aaab-proxy
ln -s /opt/aaab-proxy/aaab.service /etc/systemd/system/aaab-proxy.service
cp proxy/service /opt/aaab-proxy
cp proxy/deploy /opt/aaab-proxy
chmod +x /opt/aaab-project/{service,deploy}
chmod +x /opt/aaab-proxy/{service,deploy}
# Service
service aaab-proxy start
\ No newline at end of file
#!/bin/bash
# ENV
export DEBIAN_FRONTEND=noninteractive
# Software Setup
apt update
apt upgrade -y
apt install openjdk-8-jre-headless nano git
apt install openjdk-8-jre-headless nano git curl -y
# Caddy Setup
bash caddy/setup.sh
......
AAABVERSION=1.19.1
AAABCIJOB=5607
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment