fix formatting
This commit is contained in:
parent
0a5454f8df
commit
aadd464335
1 changed files with 7 additions and 7 deletions
14
start.sh
14
start.sh
|
@ -1,16 +1,16 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# check if the spigot is alredy built
|
# check if spigot is alredy built
|
||||||
cd /usr/games/mcserv
|
cd /usr/games/mcserv
|
||||||
|
|
||||||
if ls /usr/games/mcserv/spigot*.jar &> /dev/null
|
if ls /usr/games/mcserv/spigot*.jar &> /dev/null
|
||||||
then
|
then
|
||||||
spigot_filename="$(ls -1 /usr/games/mcserv/spigot*.jar)"
|
spigot_filename="$(ls -1 /usr/games/mcserv/spigot*.jar)"
|
||||||
echo "eula=true" > /usr/games/mcserv/eula.txt
|
echo "eula=true" > /usr/games/mcserv/eula.txt
|
||||||
java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar "${spigot_filename}"
|
java -Xms512M -Xmx1G -XX:MaxPermSize=128M -XX:+UseConcMarkSweepGC -jar "${spigot_filename}"
|
||||||
else
|
else
|
||||||
echo "spigot not built yet. rebuilding it"
|
echo "spigot not built yet. rebuilding it"
|
||||||
wget -O /usr/games/mcserv/BuildTools.jar "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
|
wget -O /usr/games/mcserv/BuildTools.jar "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
|
||||||
java -jar BuildTools.jar
|
java -jar BuildTools.jar
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue