I have bought a VServer and unfortunately have an error message in the console
/start.sh: Line 23: Syntax error: Unexpected end of file.
Here is the start.sh script
#! / Bin / bash
while true; do
echo ""
echo "#################################"
echo "## Auto Restart Script ##"
echo "## ##"
echo "## Press Ctrl + C ONLY when this ##"
echo "## message shows to stop the loop. ##"
echo "#################################"
echo "Starting in 5 seconds…"
sleep 1
echo "Starting in 4 seconds…"
sleep 1
echo "Starting in 3 seconds…"
sleep 1
echo "Starting in 2 seconds…"
sleep 1
echo "Starting in 1 seconds…"
sleep 1
java -Xms128M -Xmx2000M -jar spigot.jar --log-strip-color
Knows why that is?
Server system: Ubuntu 18.04 LTS 64bi
I can't check that, but I think you have to change the -jar to -java.
Should be a Java call, that end of file. Jar has so only limited what to do
Because you do not finish the while loop
apart from that, that makes no sense. Take the "while true…" out
At the very end of the code must
done
This completes the endless loop started with while above.
Unexpected end of file
the interpreter just expects "done"