mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-09 09:53:47 +02:00
add file-check
This commit is contained in:
@@ -6,10 +6,10 @@ Paar wunderbare Scripts
|
||||
|
||||
## Spigot Auto-Build Scripts
|
||||
Systemrequirements:<br>
|
||||
Distribution: Debian 9-10 / Ubuntu 16.04 - 18.04<br>
|
||||
Distribution: Debian 9-11 / Ubuntu 16.04 - 20.04<br>
|
||||
CPU: 1 vCore <br>
|
||||
Ram: 2GB <br><br>
|
||||
  <br>
|
||||
    <br>
|
||||
<code>bash <(wget -O - 'https://git.io/JYBMI')</code>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ Ram: 2GB <br><br>
|
||||
|
||||
|
||||
## TS3AudioBot Installer
|
||||
  <br>
|
||||
    <br>
|
||||
<code>bash <(wget -O - 'https://git.io/JYBMG')</code>
|
||||
|
||||
|
||||
|
||||
@@ -23,14 +23,35 @@ echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
rm BuildTools.jar
|
||||
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
clear
|
||||
|
||||
echo "Checking software packages ..."
|
||||
apt-get update
|
||||
apt-get install git default-jdk -y
|
||||
echo "start building ..."
|
||||
sleep 2
|
||||
java -jar BuildTools.jar
|
||||
FILE=BuildTool.jar
|
||||
if [ -f "$FILE" ]; then # Datei ist nicht vorhanden
|
||||
echo "Checking software packages ..."
|
||||
apt-get update
|
||||
apt-get install git default-jdk openjdk-17-jdk openjdk-17-jre -y
|
||||
clear
|
||||
echo "Checking software packages ..."
|
||||
echo -n "Which version should be built? (z.B. 1.18): "
|
||||
read;
|
||||
echo "start building Spigot-${REPLY} ..."
|
||||
sleep 2
|
||||
java -jar BuildTools.jar --rev ${REPLY}
|
||||
else # Datei ist nicht vorhanden
|
||||
echo "downloading BuildTools ..."
|
||||
rm BuildTools.jar
|
||||
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
||||
clear
|
||||
echo "downloading BuildTools ..."
|
||||
echo "Checking software packages ..."
|
||||
apt-get update
|
||||
apt-get install git default-jdk openjdk-17-jdk openjdk-17-jre -y
|
||||
clear
|
||||
echo "downloading BuildTools ..."
|
||||
echo "Checking software packages ..."
|
||||
echo -n "Which version should be built? (z.B. 1.18): "
|
||||
read;
|
||||
echo "start building Spigot-${REPLY} ..."
|
||||
sleep 2
|
||||
java -jar BuildTools.jar --rev ${REPLY}
|
||||
fi
|
||||
Reference in New Issue
Block a user