mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-18 22:33:50 +02:00
add file-check
This commit is contained in:
@@ -6,10 +6,10 @@ Paar wunderbare Scripts
|
|||||||
|
|
||||||
## Spigot Auto-Build Scripts
|
## Spigot Auto-Build Scripts
|
||||||
Systemrequirements:<br>
|
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>
|
CPU: 1 vCore <br>
|
||||||
Ram: 2GB <br><br>
|
Ram: 2GB <br><br>
|
||||||
  <br>
|
    <br>
|
||||||
<code>bash <(wget -O - 'https://git.io/JYBMI')</code>
|
<code>bash <(wget -O - 'https://git.io/JYBMI')</code>
|
||||||
|
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ Ram: 2GB <br><br>
|
|||||||
|
|
||||||
|
|
||||||
## TS3AudioBot Installer
|
## TS3AudioBot Installer
|
||||||
  <br>
|
    <br>
|
||||||
<code>bash <(wget -O - 'https://git.io/JYBMG')</code>
|
<code>bash <(wget -O - 'https://git.io/JYBMG')</code>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -23,14 +23,35 @@ echo ""
|
|||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
rm BuildTools.jar
|
|
||||||
wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
echo "Checking software packages ..."
|
FILE=BuildTool.jar
|
||||||
apt-get update
|
if [ -f "$FILE" ]; then # Datei ist nicht vorhanden
|
||||||
apt-get install git default-jdk -y
|
echo "Checking software packages ..."
|
||||||
echo "start building ..."
|
apt-get update
|
||||||
sleep 2
|
apt-get install git default-jdk openjdk-17-jdk openjdk-17-jre -y
|
||||||
java -jar BuildTools.jar
|
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