script now work
This commit is contained in:
parent
123b7faecb
commit
20bbc2c91e
1 changed files with 17 additions and 5 deletions
22
start.sh
22
start.sh
|
@ -1,10 +1,22 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "Starting Lavalink server..."
|
|
||||||
cd src/lavalink
|
cd src/lavalink
|
||||||
[-f Lavalink.jar] || chmod u+x download.sh && ./download.sh
|
if [ -f "Lavalink.jar" ]; then
|
||||||
java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar 1> /dev/null & # showing only stderror
|
echo "Lavalink found."
|
||||||
echo "Starting Discord bot..."
|
else {
|
||||||
|
echo "Downloading Lavalink...";
|
||||||
|
chmod u+x download.sh;
|
||||||
|
./download.sh
|
||||||
|
} fi
|
||||||
|
if pgrep -f "Lavalink.jar" > /dev/null
|
||||||
|
then
|
||||||
|
echo "Lavaling already started."
|
||||||
|
else {
|
||||||
|
echo "Starting Lavalink server...";
|
||||||
|
java -Djdk.tls.client.protocols=TLSv1.3 -Xmx3G -jar Lavalink.jar > /dev/null & # showing only stderror
|
||||||
|
} fi
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "Starting Discord bot..."
|
||||||
python3 -u ./main.py
|
python3 -u ./main.py
|
||||||
|
|
||||||
# if you want to kill the java process, do this command: pkill -9 -f Lavalink.jar
|
# if you want to kill the java process, do this command:
|
||||||
|
# pkill -9 -f Lavalink.jar
|
||||||
|
|
Reference in a new issue